Skip to content

Commit

Permalink
hotfix: Web app variables issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankParticle committed Jul 22, 2024
1 parent 133039e commit ca84b79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/web/src/env.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { z } from 'zod';
import { createEnv } from '@t3-oss/env-core';
import { z } from 'zod';

const IS_BROWSER = typeof window !== 'undefined';
const IS_DEV = process.env.NODE_ENV === 'development';
Expand All @@ -26,7 +26,9 @@ if (!IS_BROWSER) {

PUBLIC_ENV_LIST.forEach((key) => {
const prefixedKey = `NEXT_PUBLIC_${key}`;
process.env[prefixedKey] = process.env[key];
if (typeof process.env[key] !== 'undefined') {
process.env[prefixedKey] = process.env[key];
}
});
}

Expand Down

0 comments on commit ca84b79

Please sign in to comment.