Skip to content

Hotfix/env nextjs config#52

Open
phdbui wants to merge 2 commits into
webdevcody:mainfrom
phdbui:hotfix/env-nextjs-config
Open

Hotfix/env nextjs config#52
phdbui wants to merge 2 commits into
webdevcody:mainfrom
phdbui:hotfix/env-nextjs-config

Conversation

@phdbui

@phdbui phdbui commented Jun 9, 2025

Copy link
Copy Markdown

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.

@bolt-new-by-stackblitz

Copy link
Copy Markdown

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