Hotfix/env nextjs config #52
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces updates to the Next.js configuration and environment variable handling. The changes aim to enhance compatibility with newer versions of Next.js and streamline environment variable validation.
Next.js Configuration Updates:
next.config.mjs
: AddedtranspilePackages
to include@t3-oss/env-nextjs
and@t3-oss/env-core
, enabling package transpilation for better compatibility with Next.js.Environment Variable Handling:
src/env.ts
: ReplacedruntimeEnv
withexperimental__runtimeEnv
to leverage Next.js >= 13.4.4's experimental runtime environment handling. This simplifies environment variable validation and reduces manual specification of server-side variables.