mirror of
https://github.com/Kizuren/statusPage.git
synced 2025-12-21 21:16:09 +01:00
Bug correction: use query string to force import new config dynamically.
This commit is contained in:
parent
03baf4dd4d
commit
ac4cc2044e
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ let config = (await import('./config.js')).default;
|
|||
|
||||
watchFile('./config.js', async ()=>{ // Dynamically reload config and watch it for changes.
|
||||
try {
|
||||
config = (await import('./config.js')).default;
|
||||
config = (await import('./config.js?refresh='+Date.now())).default;
|
||||
console.log('Reloaded config file.')
|
||||
} catch(e) {
|
||||
console.error(e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue