diff --git a/src/rainfly/svelte.config.js b/src/rainfly/svelte.config.js index e5487abda..3b353f900 100644 --- a/src/rainfly/svelte.config.js +++ b/src/rainfly/svelte.config.js @@ -1,6 +1,8 @@ import adapter from '@sveltejs/adapter-static'; import {vitePreprocess} from '@sveltejs/vite-plugin-svelte'; +const BUILD_DIR = '/rainfly'; + /** @type {import('@sveltejs/kit').Config} */ const config = { kit: { @@ -11,6 +13,10 @@ const config = { // https://kit.svelte.dev/docs/adapters for more information // about adapters. adapter: adapter(), + appDir: 'app', + paths: { + base: process.argv.includes('dev') ? '' : BUILD_DIR, + }, }, preprocess: vitePreprocess(), };