mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 23:24:46 -04:00
Update to generate front-end constants on server startup
To avoid extra webpacking on changing configs and follow the 12 factor app
This commit is contained in:
parent
b07eeed0c5
commit
448b006194
5 changed files with 34 additions and 12 deletions
8
public/js/lib/common/constant.ejs
Normal file
8
public/js/lib/common/constant.ejs
Normal file
|
@ -0,0 +1,8 @@
|
|||
window.domain = '<%- domain %>'
|
||||
window.urlpath = '<%- urlpath %>'
|
||||
window.debug = <%- debug %>
|
||||
window.version = '<%- version %>'
|
||||
|
||||
window.GOOGLE_API_KEY = '<%- GOOGLE_API_KEY %>'
|
||||
window.GOOGLE_CLIENT_ID = '<%- GOOGLE_CLIENT_ID %>'
|
||||
window.DROPBOX_APP_KEY = '<%- DROPBOX_APP_KEY %>'
|
Loading…
Add table
Add a link
Reference in a new issue