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

Env validation on NextJS standalone output #264

Closed
truediogo opened this issue Sep 10, 2024 · 3 comments
Closed

Env validation on NextJS standalone output #264

truediogo opened this issue Sep 10, 2024 · 3 comments

Comments

@truediogo
Copy link

There's a way to made validation work on NextJs projects with output standalone ?

https://nextjs.org/docs/pages/api-reference/next-config-js/output

All my projects are standalone output based, so, the lib are disabled on CI and also does not work on project run..

@riccardolardi
Copy link

Any news on this?

@ezeparziale
Copy link
Contributor

You need to add the following to your next.config.ts:

transpilePackages: ["@t3-oss/env-nextjs", "@t3-oss/env-core"],

@juliusmarminge
Copy link
Member

Closed by #292

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

No branches or pull requests

4 participants