We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f69fc0a commit a3e5162Copy full SHA for a3e5162
packages/app-next/index.js
@@ -10,8 +10,10 @@ class NextApp {
10
this._dir = path.resolve(dir);
11
}
12
13
- async prepareMiddleware({ dev, distDir }) {
14
- const nextApp = next({ dir: this._dir, dev, conf: { distDir } });
+ async prepareMiddleware({ dev }) {
+ // 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 });
17
await nextApp.prepare();
18
return nextApp.getRequestHandler();
19
0 commit comments