summaryrefslogtreecommitdiff
path: root/web/vite.config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web/vite.config.ts')
-rw-r--r--web/vite.config.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/vite.config.ts b/web/vite.config.ts
index d50c975..772ea4c 100644
--- a/web/vite.config.ts
+++ b/web/vite.config.ts
@@ -3,6 +3,9 @@ import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vitest/config';
export default defineConfig({
+ // Game fonts live in `static/` (copied to the build root, served by the
+ // Dart server at /fonts/ in production).
+ publicDir: 'static',
plugins: [svelte()],
resolve: {
alias: {
@@ -17,6 +20,11 @@ export default defineConfig({
target: 'ws://localhost:4567',
ws: true,
},
+ // The Dart server owns the game data and artwork; the client
+ // fetches them from /data/ and /images/ exactly as it will in
+ // production (where the Dart server serves the built app too).
+ '/data': 'http://localhost:4567',
+ '/images': 'http://localhost:4567',
},
},
test: {