Skip to content

Commit

Permalink
Update Svelte adapter in svelte.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ctwhome committed Mar 19, 2024
1 parent 62388a3 commit 63d1d9c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-static';
import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'

/** @type {import('@sveltejs/kit').Config} */
Expand All @@ -11,9 +11,7 @@ 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({
fallback: '404.html'
}),
adapter: adapter(),
paths: {
base: process.argv.includes('dev') ? '' : process.env.BASE_PATH
}
Expand Down

0 comments on commit 63d1d9c

Please sign in to comment.