Skip to content

Commit 5015158

Browse files
author
Herve Tribouilloy
committed
Removed constraint to enforce environment variable for production environment
1 parent c46338e commit 5015158

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

vite_project/vite.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ export default defineConfig(({ mode }) => {
99

1010
const authBridgeTarget = env.VITE_AUTH_BRIDGE_TARGET;
1111

12-
if (!authBridgeTarget) {
12+
if (mode === 'development' && !authBridgeTarget) {
1313
throw new Error(
14-
'VITE_AUTH_BRIDGE_TARGET is not set. ' +
15-
'Check your .env files.'
14+
'VITE_AUTH_BRIDGE_TARGET is required in development mode'
1615
);
1716
}
1817

0 commit comments

Comments
 (0)