Skip to content

Commit

Permalink
use svelte static adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
DougAnderson444 committed Jan 9, 2024
1 parent f087390 commit 64a0430
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
10 changes: 10 additions & 0 deletions examples/sveltekit/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion examples/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"autoprefixer": "^10.4.16",
Expand All @@ -22,12 +23,12 @@
"postcss": "^8.4.32",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"rollup-plugin-wit-component": "^0.1.3",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"tailwindcss": "^3.3.7",
"typescript": "^5.0.0",
"vite": "^5.0.3",
"rollup-plugin-wit-component": "^0.1.3",
"wurbo": "^0.1.3"
},
"type": "module"
Expand Down
9 changes: 7 additions & 2 deletions examples/sveltekit/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

/** @type {import('@sveltejs/kit').Config} */
Expand All @@ -7,7 +7,12 @@ const config = {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
adapter: adapter({
fallback: '404.html'
}),
paths: {
base: process.argv.includes('dev') ? '' : '/seed-keeper' // process.env.BASE_PATH
}
},
preprocess: vitePreprocess()
};
Expand Down

0 comments on commit 64a0430

Please sign in to comment.