Add custom public/assets/img to site
This commit is contained in:
parent
ab4ca9401c
commit
b5efcdabc5
3 changed files with 5 additions and 0 deletions
|
@ -62,6 +62,11 @@ function Server () {
|
|||
// Support per-request http-context
|
||||
app.use(httpContext.middleware);
|
||||
|
||||
// 'express.static' to serve static files from site/public directory
|
||||
const sitePublicPath = Path.resolve(process.cwd(), 'site/public');
|
||||
app.use(express.static(sitePublicPath));
|
||||
logger.info(`serving static files from site static path at ${sitePublicPath}.`);
|
||||
|
||||
// 'express.static' to serve static files from public directory
|
||||
const publicPath = Path.resolve(process.cwd(), 'public');
|
||||
app.use(express.static(publicPath));
|
||||
|
|
0
site/public/.gitkeep
Normal file
0
site/public/.gitkeep
Normal file
0
site/public/assets/img/.gitkeep
Normal file
0
site/public/assets/img/.gitkeep
Normal file
Loading…
Reference in a new issue