Question · Next.js course · Module 8: Deployment and Production
Build-time vs Runtime Variables in Next.js
Variables with the NEXT_PUBLIC_ prefix are injected into the code:
Answer options
- At runtime, with every request
- At build-time, during npm run build
- At deployment time on Vercel
- At dependency installation time (npm install)
You can check the correct answer by solving this task in the CodeWorlds game.