Skip to content

Conversation

phdbui
Copy link

@phdbui phdbui commented Jun 9, 2025

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: Added transpilePackages 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: Replaced runtimeEnv with experimental__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.

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

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

Successfully merging this pull request may close these issues.

1 participant