Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: identify Deno as server (#154) #220

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

michaellopez
Copy link
Contributor

@juliusmarminge We hit the faulty server detection explained in #154 when using t3-env on Netlify in a middleware in Next.js. Netlify uses Deno to bundle for edge, and this resulted in builds failing with "❌ Attempted to access a server-side environment variable on the client".

I think Netlify + Next.js middleware + t3-env qualifies as "common setups widely used" as you put it in your comment

We would appreciate out of the box support for this combo.

Copy link

vercel bot commented Apr 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
t3-env ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 17, 2024 2:03pm

Copy link

vercel bot commented Apr 16, 2024

@michaellopez is attempting to deploy a commit to the t3-oss Team on Vercel.

A member of the Team first needs to authorize it.

@juliusmarminge
Copy link
Member

Can you fix lint?

bun lint:fix

@michaellopez
Copy link
Contributor Author

michaellopez commented Apr 17, 2024

Can you fix lint?

bun lint:fix

@juliusmarminge Lint is fixed, sorry I missed that.

@juliusmarminge juliusmarminge merged commit 4d6c0d5 into t3-oss:main Apr 22, 2024
5 of 6 checks passed
@michaellopez michaellopez deleted the fix/issue-154 branch April 22, 2024 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants