chore(config): 🔧 Update configuration defaults for new environment variables
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
b6600d5b6f
commit
5342e55b6d
2 changed files with 6 additions and 1 deletions
|
|
@ -30,6 +30,9 @@
|
|||
],
|
||||
"@magic-civ/guide-engine": [
|
||||
"../engine/src/index.ts"
|
||||
],
|
||||
"@magic-civ/guide-engine/*": [
|
||||
"../engine/src/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue