Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
www
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
www
Commits
c0998841
Commit
c0998841
authored
Nov 01, 2026
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: isolated dev store (.next-dev) — a prod build can no longer kill a live dev server
parent
5d9ce1dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
.gitignore
.gitignore
+2
-1
next.config.js
next.config.js
+4
-0
No files found.
.gitignore
View file @
c0998841
...
@@ -11,8 +11,9 @@ node_modules/
...
@@ -11,8 +11,9 @@ node_modules/
/coverage
/coverage
/test-results/
/test-results/
# next.js
# next.js
(dev and prod build stores — isolated, see next.config.js)
/.next/
/.next/
/.next-dev/
/out/
/out/
# production
# production
...
...
next.config.js
View file @
c0998841
...
@@ -6,6 +6,10 @@ module.exports = {
...
@@ -6,6 +6,10 @@ module.exports = {
// nginx. Every route is prerendered at build; ISR is replaced by
// nginx. Every route is prerendered at build; ISR is replaced by
// rebuild-on-push.
// rebuild-on-push.
output
:
'export'
,
output
:
'export'
,
// Isolated build stores: dev writes `.next-dev`, prod writes `.next`. A
// `yarn build` under a live dev server used to overwrite `.next` under it —
// chunk paths went stale and the dev runtime died mid-request. Never again.
distDir
:
process
.
env
.
NODE_ENV
===
'development'
?
'.next-dev'
:
'.next'
,
images
:
{
images
:
{
// `next/image` optimization needs a server; flat files ship originals.
// `next/image` optimization needs a server; flat files ship originals.
unoptimized
:
true
,
unoptimized
:
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment