Skip to content

Commit

Permalink
Still fix server/index
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksTeresh committed Aug 27, 2024
1 parent 2802adc commit 4bdb9f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ app.use('/api', routes)
app.use(Sentry.Handlers.errorHandler())
app.use(errorMiddleware)

if (true || inProduction || inStaging) {
const DIST_PATH = path.resolve(__dirname, '../../build')
if (inProduction || inStaging) {
const DIST_PATH = path.resolve(__dirname, '../build')
const INDEX_PATH = path.resolve(DIST_PATH, 'index.html')
app.use(express.static(DIST_PATH))
app.get('*', (_req, res) => res.sendFile(INDEX_PATH))
Expand Down

0 comments on commit 4bdb9f7

Please sign in to comment.