📅  最后修改于: 2022-03-11 15:01:39.287000             🧑  作者: Mango
if (process.env.NODE_ENV) {
app.use(express.static(path.resolve(process.cwd(), 'client/build')))
app.get('*', (req, res) => {
res.sendFile(path.resolve(process.cwd(), 'client/build/index.html'))
})
}