mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-28 15:47:48 +01:00
fix serving static files
This commit is contained in:
4
app.js
4
app.js
@@ -51,8 +51,8 @@ if (
|
|||||||
process.env.NODE_ENV === 'production' ||
|
process.env.NODE_ENV === 'production' ||
|
||||||
process.env.NODE_ENV === 'development'
|
process.env.NODE_ENV === 'development'
|
||||||
) {
|
) {
|
||||||
app.use(express.static(path.join(__dirname, 'react/build')));
|
app.use(express.static(path.join(__dirname, 'client/build')));
|
||||||
app.use('*', express.static(path.join(__dirname, 'react/build/index.html')));
|
app.use('*', express.static(path.join(__dirname, 'client/build/index.html')));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 404 route
|
// 404 route
|
||||||
|
|||||||
Reference in New Issue
Block a user