chore(config): 🔧 Update configuration defaults for new environment variables

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Claude Code 2026-03-28 21:31:35 -07:00
parent b6600d5b6f
commit 5342e55b6d
2 changed files with 6 additions and 1 deletions

View file

@ -30,6 +30,9 @@
],
"@magic-civ/guide-engine": [
"../engine/src/index.ts"
],
"@magic-civ/guide-engine/*": [
"../engine/src/*"
]
}
},

View file

@ -1,15 +1,17 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
import { simCachePlugin } from './src/vite-plugins/simCachePlugin'
const GAME_ID = process.env.VITE_GAME_ID ?? 'age-of-dwarves'
export default defineConfig({
plugins: [react()],
plugins: [react(), simCachePlugin()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@data': path.resolve(__dirname, `../../games/${GAME_ID}/data`),
'@worlds': path.resolve(__dirname, '../../engine/src/worlds'),
'@magic-civ/engine-ts': path.resolve(__dirname, '../../packages/engine-ts/src/index.ts'),
'@magic-civ/guide-engine': path.resolve(__dirname, '../engine/src/index.ts'),
},