From 9b8ed08683e68b4c3e0df7cacc848b48351dd293 Mon Sep 17 00:00:00 2001 From: terry feng Date: Tue, 1 Oct 2024 12:45:12 -0700 Subject: [PATCH] fix svelte output paths --- src/rainfly/svelte.config.js | 6 ++++++ 1 file changed, 6 insertions(+) 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(), };