Skip to content

Commit

Permalink
Fix assets not found in Express server (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey authored and JoelMarcey committed Jun 2, 2018
1 parent e91e648 commit b00e9d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,11 +516,11 @@ function execute(port) {

// serve static assets from these locations
app.use(
join(siteConfig.baseUrl, 'docs', 'assets'),
`${siteConfig.baseUrl}docs/assets`,
express.static(join(CWD, '..', readMetadata.getDocsPath(), 'assets'))
);
app.use(
join(siteConfig.baseUrl, 'blog', 'assets'),
`${siteConfig.baseUrl}blog/assets`,
express.static(join(CWD, 'blog', 'assets'))
);
app.use(siteConfig.baseUrl, express.static(join(CWD, 'static')));
Expand Down

0 comments on commit b00e9d1

Please sign in to comment.