[Server] Fix client re-navigation to same page, pass isEnv to context

This commit is contained in:
2024-07-15 00:47:19 +02:00
parent b315fdce00
commit 9b23a57eeb
2 changed files with 30 additions and 24 deletions

View File

@ -8,9 +8,9 @@ const server = SpaccDotWebServer.setup({
linkStyles: [ 'index.css' ],
// linkRuntimeScripts: [], // not (yet) implemented
linkClientScripts: [ 'particles.js' ],
// pageTitler: (title, opts={}) => `...`,
// appPager: (content, title, opts={}) => `...`,
// htmlPager: (content, title, opts={}) => `...`,
// pageTitler: (title, opts={}, context) => `...`,
// appPager: (content, title, opts={}, context) => `...`,
// htmlPager: (content, title, opts={}, context) => `...`,
});
if (SpaccDotWebServer.envIsNode && ['dump', 'html', 'writeStaticHtml'].includes(process.argv[2])) {