Skip to content

Commit

Permalink
fix svelte output paths
Browse files Browse the repository at this point in the history
  • Loading branch information
terryzfeng committed Oct 1, 2024
1 parent 393c9a3 commit 9b8ed08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/rainfly/svelte.config.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand All @@ -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(),
};
Expand Down

0 comments on commit 9b8ed08

Please sign in to comment.