Skip to content

Commit

Permalink
Support RN Expo (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
chungweileong94 committed Oct 4, 2023
1 parent 4754db7 commit 86ea798
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/healthy-pears-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@t3-oss/env-core": patch
---

Support React Native Expo
7 changes: 6 additions & 1 deletion packages/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,12 @@ export function createEnv<

const env = new Proxy(parsed.data, {
get(target, prop) {
if (typeof prop !== "string" || prop === "__esModule") return undefined;
if (
typeof prop !== "string" ||
prop === "__esModule" ||
prop === "$$typeof"
)
return undefined;
if (
!isServer &&
opts.clientPrefix &&
Expand Down

2 comments on commit 86ea798

@vercel
Copy link

@vercel vercel bot commented on 86ea798 Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

t3-env – ./docs

env.t3.gg
t3-env-t3-oss.vercel.app
t3-env.vercel.app
t3-env-git-main-t3-oss.vercel.app
env.t3.wtf

@vercel
Copy link

@vercel vercel bot commented on 86ea798 Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

t3-env-nextjs – ./examples/nextjs

t3-env-nextjs-t3-oss.vercel.app
t3-env-nextjs.vercel.app
t3-env-nextjs-git-main-t3-oss.vercel.app

Please sign in to comment.