Fix deployment

This commit is contained in:
2023-08-06 19:42:51 +02:00
parent c0b8aae14c
commit 49cd349424
4 changed files with 5413 additions and 5426 deletions

View File

@@ -1,4 +1,6 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static';
const dev = process.argv.includes('dev');
/** @type {import('@sveltejs/kit').Config} */
const config = {
@@ -6,7 +8,10 @@ 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(),
paths: {
base: dev ? '' : process.env.BASE_PATH,
}
}
};