|
@@ -96,6 +96,7 @@ class CrowiDev {
|
|
|
setupExpressAfterListening(app) {
|
|
setupExpressAfterListening(app) {
|
|
|
// this.setupHeaderDebugger(app);
|
|
// this.setupHeaderDebugger(app);
|
|
|
// this.setupBrowserSync(app);
|
|
// this.setupBrowserSync(app);
|
|
|
|
|
+ this.setupWebpackHmr(app);
|
|
|
this.setupNextjsStackFrame(app);
|
|
this.setupNextjsStackFrame(app);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -126,6 +127,11 @@ class CrowiDev {
|
|
|
// app.use(require('connect-browser-sync')(bs));
|
|
// app.use(require('connect-browser-sync')(bs));
|
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
|
|
+ setupWebpackHmr(app) {
|
|
|
|
|
+ const next = nextFactory(this.crowi);
|
|
|
|
|
+ app.all('/_next/webpack-hmr', next.delegateToNext);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
setupNextjsStackFrame(app) {
|
|
setupNextjsStackFrame(app) {
|
|
|
const next = nextFactory(this.crowi);
|
|
const next = nextFactory(this.crowi);
|
|
|
app.get('/__nextjs_original-stack-frame', next.delegateToNext);
|
|
app.get('/__nextjs_original-stack-frame', next.delegateToNext);
|