Skip to content

Commit

Permalink
Add some more static options to svelte static config
Browse files Browse the repository at this point in the history
  • Loading branch information
matekdev committed Nov 11, 2023
1 parent fe8b84d commit 314ed70
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@ 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({
// default options are shown. On some platforms
// these options are set automatically — see below
pages: 'build',
assets: 'build',
fallback: undefined,
precompress: false,
strict: true,
fallback: '404.html'
}),
paths: {
base: process.argv.includes('dev') ? '' : process.env.BASE_PATH
},
prerender: {
handleHttpError: ({ path, referrer, message }) => {
throw new Error(message);
},
entries: []
}
},
extensions: ['.svelte', '.md'],
Expand Down

0 comments on commit 314ed70

Please sign in to comment.