updated default public folder to "public"
This commit is contained in:
parent
e45f700b07
commit
e6ade3b728
2 changed files with 3 additions and 3 deletions
4
index.js
4
index.js
File diff suppressed because one or more lines are too long
|
@ -50,7 +50,7 @@ function Server () {
|
||||||
app.use(express.static(publicFolder));
|
app.use(express.static(publicFolder));
|
||||||
logger.info('serving static files from custom path:', publicFolder);
|
logger.info('serving static files from custom path:', publicFolder);
|
||||||
} else {
|
} else {
|
||||||
const publicPath = Path.resolve(process.cwd(), 'static');
|
const publicPath = Path.resolve(process.cwd(), 'public');
|
||||||
app.use(express.static(publicPath));
|
app.use(express.static(publicPath));
|
||||||
logger.warn(`serving static files from default static path at ${publicPath}. Please specify a path in your config/siteConfig.js file`, );
|
logger.warn(`serving static files from default static path at ${publicPath}. Please specify a path in your config/siteConfig.js file`, );
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue