Skip to content

Commit a3e5162

Browse files
fix(app-next): search for next at default dir (#32)
1 parent f69fc0a commit a3e5162

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/app-next/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ class NextApp {
1010
this._dir = path.resolve(dir);
1111
}
1212

13-
async prepareMiddleware({ dev, distDir }) {
14-
const nextApp = next({ dir: this._dir, dev, conf: { distDir } });
13+
async prepareMiddleware({ dev }) {
14+
// NOTE: distDir is pointing to /dist, however next is built to /.next by default
15+
// We want to keep this behaviour, so I omitted it for now
16+
const nextApp = next({ dir: this._dir, dev });
1517
await nextApp.prepare();
1618
return nextApp.getRequestHandler();
1719
}

0 commit comments

Comments
 (0)