Skip to content

Commit ce59cca

Browse files
committed
fix(frontend): only load local env on dev
1 parent c6fca71 commit ce59cca

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

apps/frontend/nuxt.config.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@ const siteConfig = {
99
description: '🔥Hono RPC, Nuxt, SST Ion, Kinde Auth, Tanstack Query, Shadcn, Primevue, UnoCSS',
1010
}
1111

12-
config({ path: ['.env.local', '.env.local.ignored'], override: true })
13-
14-
console.log({
15-
a: import.meta.env.NUXT_PUBLIC_FRONTEND_URL,
16-
b: import.meta.env.NUXT_PUBLIC_FRONTEND_URL_TEST,
17-
})
12+
if (import.meta.dev)
13+
config({ path: ['.env.local', '.env.local.ignored'], override: true })
1814

1915
// https://nuxt.com/docs/api/configuration/nuxt-config
2016
export default defineNuxtConfig({

0 commit comments

Comments
 (0)