mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 16:17:25 +02:00
Fix assets not found in Express server (#720)
This commit is contained in:
parent
e91e648844
commit
b00e9d14e2
1 changed files with 2 additions and 2 deletions
|
@ -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')));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue