add a dynamic js script for page config
This commit is contained in:
parent
262322b9e8
commit
85a7be01cb
5 changed files with 15 additions and 28 deletions
|
@ -69,9 +69,15 @@ app.use('/l20n', express.static(L20N));
|
|||
app.use('/locales', express.static(LOCALES));
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.render('index', {
|
||||
res.render('index');
|
||||
});
|
||||
|
||||
app.get('/jsconfig.js', (req, res) => {
|
||||
res.set('Content-Type', 'application/javascript');
|
||||
res.render('jsconfig', {
|
||||
trackerId: conf.analytics_id,
|
||||
dsn: conf.sentry_id
|
||||
dsn: conf.sentry_id,
|
||||
layout: false
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue