Comments (5)
Are you using turborepo to build/run ?
https://turbo.build/repo/docs/reference/run#--env-mode-option
Turbo --env-mode is strict by default (only env variables specified in the config are passed to the container)
Using
$ turbo run build --env-mode loose
fixes this
from t3-env.
I don't think this is related to this library.
You need to:
- for client side variables, the values have to be known at build-time as these are (most likely) statically replaced by your framework. So your Dockerfile must provide these (either from an env file or build args)
- for server variables, you don't want to inject these when you build the image. you instead want to provide these when starting the container. To make the build not fail when the variables aren't there, you can set the
skipValidation
option to something that identifies your build pipeline.
from t3-env.
Experiencing the same issue after upgrading to Docker 4.30.0. I'm not sure if it's related to the upgrade.
from t3-env.
Are you using turborepo to build/run ?
https://turbo.build/repo/docs/reference/run#--env-mode-option
Turbo --env-mode is strict by default (only env variables specified in the config are passed to the container)
Using
$ turbo run build --env-mode loosefixes this
No I'm using create-t3-app
from t3-env.
Are you using turborepo to build/run ?
https://turbo.build/repo/docs/reference/run#--env-mode-option
Turbo --env-mode is strict by default (only env variables specified in the config are passed to the container)
Using$ turbo run build --env-mode loosefixes this
No I'm using create-t3-app
that has nothing to do with deployment ?
Check your Dockerfile / Docker commands if it contains "turbo"..
from t3-env.
Related Issues (20)
- Is there a way not to include zod into the bundle? HOT 1
- Using shared variables with no clientPrefix HOT 1
- Validation lib agnostic
- Support for key nesting HOT 1
- Support Custom Prefixes for Client Environment Variables in `@t3-oss/env-nextjs` HOT 1
- Feature request - add support for virtual envs HOT 1
- Feature request - add support for express js HOT 1
- `@ts-oss/[email protected]` Release Failure
- Shared variables from an extended config throw when used on the client
- How can I use a common variable and a client variable without a prefix? Nuxt 3 HOT 1
- Problems with package import in version 0.9.1, How can I make Jest work successfully? HOT 3
- Proposal to add extensions.json HOT 1
- Cannot find module '@t3-oss/env-core' or its corresponding type declarations. HOT 2
- Bundling Next.JS app results in environment key names exposed in the bundled js chunks HOT 2
- conditional environment variable based on environment HOT 4
- Vercel Server environment variables being populated HOT 2
- t2-env package dependencies vs devDependencies HOT 1
- SvelteKit + @sveltejs/adapter-node = "Attempted to access a server-side environment variable on the client"
- Error Missing "./dist" specifier in "@t3-oss/env-core" package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from t3-env.