We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5b029f commit 36bc9faCopy full SHA for 36bc9fa
src/commands/server.js
@@ -224,7 +224,7 @@ exports.run = (options) => {
224
if (Object.keys(nextConfig.entry).length === 0) {
225
// 如果是js入口没找到,那肯定是出错了,这时候应该直接next让后面报错
226
if (req.url.match(/\.js$/)) {
227
- res.writeHead(200, { 'Content-Type': 'text/html' });
+ res.writeHead(404, { 'Content-Type': 'text/html' });
228
res.end('[ykit] - js入口未找到,请检查项目' + projectName + '的ykit配置文件.');
229
} else {
230
setTimeout(() => {
0 commit comments