-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #258 Expose the internal value for `isServer` for reuse across the app. * **packages/core/src/index.ts** - Add `isServer` property to the `CreateEnv` return type. - Update the `createEnv` function to include `isServer` in the proxy handler. * **examples/astro/src/t3-env.ts** - Import `isServer` value from the `env` object. * **examples/nextjs/app/env.ts** - Import `isServer` value from the `env` object. * **examples/nuxt/env.ts** - Import `isServer` value from the `env` object. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/t3-oss/t3-env/issues/258?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
Showing
4 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,5 @@ export const env = createEnv({ | |
}, | ||
extends: [vercel()], | ||
}); | ||
|
||
const isServer = env.isServer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ export const env = createEnv({ | |
NUXT_PUBLIC_GREETING: z.string(), | ||
}, | ||
}); | ||
|
||
const isServer = env.isServer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters