Skip to content

Commit 1d1836c

Browse files
committed
setting up correct path on server for frontend build
1 parent 80ba415 commit 1d1836c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/server.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import path from 'path'
2+
13
const express = require('express')
24
const sslRedirect = require('heroku-ssl-redirect')
35
const app = express()
@@ -41,11 +43,7 @@ app.use(passport.session())
4143
app.set('port', (process.env.PORT || 3000))
4244

4345
app.use(compression())
44-
app.use(express.static(`${__dirname}/frontend/public/`))
45-
46-
app.get('/recruitment', (req:any, res:any) => {
47-
res.redirect('https://gitpay.me/#/recruitment')
48-
})
46+
app.use(express.static(path.join(__dirname, '../frontend/public')))
4947

5048
load.init(app)
5149

0 commit comments

Comments
 (0)