Skip to content

Commit

Permalink
Serve fonts under public/fonts/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
oamaok committed Nov 7, 2024
1 parent 2077318 commit c2aaffb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const customImagesDirExists = fs.existsSync(customImagesDir)
if (customImagesDirExists) {
// serve public/images from custom dir and other public assets from public dir
app.use('/assets/images', express.static(customImagesDir))
app.use('/assets/fonts', express.static(path.join(__dirname, '../public/fonts')))
app.use('/assets/css', express.static(path.join(__dirname, '../public/css')))
app.use('/assets/scripts', express.static(path.join(__dirname, '../public/scripts')))
} else {
Expand Down

0 comments on commit c2aaffb

Please sign in to comment.