Build bundle analyzer and no-auth start commands.
build-report: uses webpack-bundle-analzer for interactive bundle size explorer. start-noauth: running locally without endpoint authentication enabled.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const mustBeAuthenticated = (req, res, next) => {
|
||||
if (process.env.NODE_ENV == "development") {
|
||||
console.info(`Restricted endpoint ${req.originalUrl}, but running in dev mode.`)
|
||||
console.info(`Restricted endpoint ${req.originalUrl}, allowing with environment development.`)
|
||||
req.isAuthenticated = () => true;
|
||||
return next();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user