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

doc(fix):Document missing info about TURBOPACK env var #76696

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from

Conversation

EduApps-CDG
Copy link

I was searching the code on how to enable turbopack when using a custom file to instantiate next (without using --turbopack).

In order to do that, I found the env var TURBOPACK=1 which I can use turbopack properly in my context:

{
  "scripts": {
    "dev": "TURBOPACK=1 npx tsx ./main.ts",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  }
}

@ijjk ijjk added the Documentation Related to Next.js' official documentation. label Mar 1, 2025
@EduApps-CDG EduApps-CDG changed the title Document info about TURBOPACK env var Document missing info about TURBOPACK env var Mar 1, 2025
@EduApps-CDG EduApps-CDG changed the title Document missing info about TURBOPACK env var doc(fix):Document missing info about TURBOPACK env var Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Related to Next.js' official documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants