Skip to content

Commit

Permalink
Revert "remove adapter-static"
Browse files Browse the repository at this point in the history
This reverts commit ee1084f.
  • Loading branch information
kwangjong committed Jan 27, 2025
1 parent d833f87 commit 7597d7b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/adapter-static": "^2.0.1",
"@sveltejs/kit": "^1.5.0",
"sass": "^1.59.3",
"svelte": "^3.54.0",
Expand Down
8 changes: 8 additions & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/kit/vite';

/** @type {import('@sveltejs/kit').Config} */
Expand All @@ -7,6 +9,12 @@ const config = {
preprocess: vitePreprocess(),

kit: {
// 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({
trailingSlash: 'never'
}),
paths: {
base: process.env.NODE_ENV === 'production' ? '/sveltekit-github-pages' : '',
},
Expand Down

0 comments on commit 7597d7b

Please sign in to comment.