Skip to content
Snippets Groups Projects
Commit 2e9215a2 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

when serving non-minified resources, substitute urls in templates so once can...

when serving non-minified resources, substitute urls in templates so once can locally test links embedded in templates (like persona tos/pp)
parent 9a80f45d
No related branches found
No related tags found
No related merge requests found
...@@ -144,6 +144,12 @@ app.use(function(req, res, next) { ...@@ -144,6 +144,12 @@ app.use(function(req, res, next) {
next(); next();
}); });
// if we're not serving minified resources (local dev), then we should add
// .ejs to the mime table so it's properly substituted. issue #1875
if (!config.get('use_minified_resources')) {
express.static.mime.types['ejs'] = 'text/html';
}
app.use(express.static(static_root)); app.use(express.static(static_root));
// open the databse // open the databse
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment