mirror of
https://github.com/GoodStartLabs/AI_Diplomacy.git
synced 2026-04-24 17:05:04 +00:00
fixed logging and elevan labs!
This commit is contained in:
parent
476402a23e
commit
f00a037aed
7 changed files with 148 additions and 35 deletions
|
|
@ -1,9 +1,28 @@
|
|||
/** @type {import('vite').UserConfig} */
|
||||
export default {
|
||||
"preview": {
|
||||
"allowedHosts": ["diplomacy"]
|
||||
},
|
||||
"dev": {
|
||||
"allowedHosts": ["diplomacy"]
|
||||
}
|
||||
}
|
||||
import { defineConfig, loadEnv } from 'vite';
|
||||
|
||||
export default defineConfig(({ mode }) => {
|
||||
// Load environment variables
|
||||
const env = loadEnv(mode, process.cwd(), '');
|
||||
|
||||
console.log('Environment mode:', mode);
|
||||
console.log('Environment variables loaded:', Object.keys(env).filter(key => key.startsWith('VITE_')));
|
||||
|
||||
return {
|
||||
// Define environment variables that should be available in the client
|
||||
define: {
|
||||
// Expose all VITE_ prefixed environment variables to the client
|
||||
...Object.keys(env).filter(key => key.startsWith('VITE_')).reduce((acc, key) => {
|
||||
acc[`import.meta.env.${key}`] = JSON.stringify(env[key]);
|
||||
return acc;
|
||||
}, {})
|
||||
},
|
||||
// Server configuration
|
||||
"preview": {
|
||||
"allowedHosts": ["diplomacy"]
|
||||
},
|
||||
"dev": {
|
||||
"allowedHosts": ["diplomacy"]
|
||||
}
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue