diff --git a/web/src/routes/+layout.ts b/web/src/routes/+layout.ts index a3d1578..cd81cf4 100644 --- a/web/src/routes/+layout.ts +++ b/web/src/routes/+layout.ts @@ -1 +1,3 @@ +export const prerender = false; export const ssr = false; +export const trailingSlash = 'always'; diff --git a/web/svelte.config.js b/web/svelte.config.js index 38de818..0b243c3 100644 --- a/web/svelte.config.js +++ b/web/svelte.config.js @@ -1,7 +1,7 @@ -import adapter from '@sveltejs/adapter-node'; +import adapter from '@sveltejs/adapter-static'; import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; -const base = process.env.BASE_URL || ''; +const base = process.env.BASE_PATH || ''; /** @type {import('@sveltejs/kit').Config} */ const config = { @@ -13,7 +13,7 @@ const config = { // 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: base }