Skip to content

Commit

Permalink
change adapter static
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviocv committed Dec 6, 2024
1 parent 2fe09f3 commit 53278fc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import adapter from '@sveltejs/adapter-static';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
adapter: adapter()
adapter: adapter({
fallback: '404.html'
}),
paths: {
base: process.argv.includes('dev') ? '' : process.env.BASE_PATH
}
}
};

Expand Down

0 comments on commit 53278fc

Please sign in to comment.