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

Multi-client prefixes #265

Open
renaldodev opened this issue Sep 10, 2024 · 1 comment
Open

Multi-client prefixes #265

renaldodev opened this issue Sep 10, 2024 · 1 comment

Comments

@renaldodev
Copy link

renaldodev commented Sep 10, 2024

Its not a real issue but a question.

Is there some way to use multi-client prefixes?

I'm working on monorepo project and I'm using they both NextJS application and Expo application. I'd like to you 'EXPO_PUBLIC_' and 'NEXT_PUBLIC_' at the same time.

@EskiMojo14
Copy link
Contributor

EskiMojo14 commented Jan 31, 2025

currently i don't think this is possible - but I've just checked and #316 makes it so each env can have their own client prefix and it'll still be handled correctly:

const expoEnv = createEnv({
  // ...
  clientPrefix: "EXPO_PUBLIC_"
})

const nextEnv = createEnv({
  // ..
  clientPrefix: "NEXT_PUBLIC_",
  extends: [expoEnv]
})

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

2 participants