Skip to content

Commit

Permalink
Fix replacing with undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ramesaliyev committed Jul 28, 2024
1 parent 57507ab commit 9ddbbb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/site/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ export default defineConfig(({command, mode}) => {
const rawEnv = loadEnv(mode, process.cwd(), 'APP_');
const env = Object.fromEntries(
Object.entries(rawEnv).map(([key, value]) => {
return [key.replace('APP_'), value];
return [key.replace('APP_', ''), value];
})
);


return {
root: root,
publicDir: 'public',
Expand Down

0 comments on commit 9ddbbb2

Please sign in to comment.