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 1943ca2 commit 7bf978eCopy full SHA for 7bf978e
server/app.js
@@ -35,9 +35,10 @@ if (httpsRedirect) app.use(httpToHttps)
35
* подключение статической библиотеки клиента
36
*/
37
if (!devMode) {
38
- app.use('/', express.static(path.join(__dirname, '../client', 'build')))
+ const clientPath = '../client/build'
39
+ app.use('/', express.static(path.join(__dirname, clientPath)))
40
app.get('*', (req, res) => {
- res.sendFile(path.resolve(__dirname, '../client', 'build', 'index.html'))
41
+ res.sendFile(path.resolve(__dirname, clientPath, 'index.html'))
42
})
43
} else {
44
0 commit comments