Skip to content

Commit 3d65752

Browse files
refactor(website): point to static files using path join
1 parent 61bb23f commit 3d65752

File tree

1 file changed

+2
-2
lines changed
  • packages/overmind-website/backend

1 file changed

+2
-2
lines changed

packages/overmind-website/backend/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ const apis = getApis()
101101

102102
const searchData = getSearchData()
103103

104-
app.use(express.static('dist'))
105-
app.use('/images', express.static('images'))
104+
app.use(express.static(path.join(__dirname, '..', 'dist')))
105+
app.use('/images', express.static(path.join(__dirname, '..', 'images')))
106106
app.get('/backend/guides', (_, res) =>
107107
res.send(IS_PRODUCTION ? guides : getGuides())
108108
)

0 commit comments

Comments
 (0)