Next.js · Junior · Pytanie 30 z 75
Co robią polecenia next build i next start?
- ✓Poprawna odpowiedź:
buildtworzy build produkcyjny,startgo uruchamia - 2
builduruchamia serwer deweloperski, astart- testy projektu - 3To synonimy:
startto stara nazwabuild
Wyjaśnienie
next dev to serwer deweloperski z szybkim odświeżaniem. next build kompiluje aplikację, prerenderuje trasy statyczne i wypisuje raport. next start uruchamia serwer produkcyjny na wyniku builda. Dla strony statycznej jest output: 'export'.