Skip to content

Commit a2c8e80

Browse files
committed
fix: Use bracket notation for process.env access to avoid Vite define plugin issues and add biome lint ignore.
1 parent e47bec2 commit a2c8e80

File tree

1 file changed

+2
-2
lines changed
  • examples/react-electron/electron

1 file changed

+2
-2
lines changed

examples/react-electron/electron/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
1515
// │
1616
process.env.APP_ROOT = path.join(__dirname, "..");
1717

18-
// 🚧 Use ['ENV_NAME'] avoid vite:define plugin - Vite@2.x
19-
export const VITE_DEV_SERVER_URL = process.env.VITE_DEV_SERVER_URL;
18+
// biome-ignore lint: 🚧 Use ['ENV_NAME'] avoid vite:define plugin - Vite@2.x
19+
export const VITE_DEV_SERVER_URL = process.env["VITE_DEV_SERVER_URL"];
2020
export const MAIN_DIST = path.join(process.env.APP_ROOT, "dist-electron");
2121
export const RENDERER_DIST = path.join(process.env.APP_ROOT, "dist");
2222

0 commit comments

Comments
 (0)