Skip to content

Commit 4051584

Browse files
committed
update server.js
1 parent 4d103cc commit 4051584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if (env === "production") {
3030
// 如果是生产环境,则运行build文件夹中的代码
3131
PORT = 8889;
3232
app.use(express.static("build"));
33-
app.get("*", function (req, res) {
33+
app.get("*", (req, res) => {
3434
res.sendFile(path.join(__dirname, "build", "index.html"));
3535
});
3636
} else {

0 commit comments

Comments
 (0)