Skip to content

Commit

Permalink
Update vite.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
pgorecki authored Feb 5, 2024
1 parent 9f05da6 commit b134978
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ const createProxy = (url: string) => ({
});

export default defineConfig(({ mode }) => {
const env = { ...process.env, ...dotenv.config({ path: `.env.${mode}` }).parsed };
const env = {
...dotenv.config({ path: `.env.${mode}` }).parsed,
...process.env,
};
console.log('using env', env);
return {
plugins: [react()],
server: {
Expand Down

0 comments on commit b134978

Please sign in to comment.