feat: improve docs and add ability to change url base of frontend

This commit is contained in:
maxDorninger
2025-05-31 14:00:04 +02:00
parent 40c90d90ed
commit a3754d6d0a
6 changed files with 29 additions and 14 deletions

View File

@@ -1,6 +1,8 @@
import adapter from '@sveltejs/adapter-node';
import {vitePreprocess} from '@sveltejs/vite-plugin-svelte';
const base = process.env.BASE_URL || '';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://svelte.dev/docs/kit/integrations
@@ -11,7 +13,10 @@ 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(),
paths: {
base: base
}
}
};