Fix assets not found in Express server (#720)

This commit is contained in:
Endilie Yacop Sucipto 2018-06-03 02:28:04 +08:00 committed by Joel Marcey
parent e91e648844
commit b00e9d14e2

View file

@ -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')));