fix: SSR does config

This commit is contained in:
cha0s 2024-01-13 07:25:32 -06:00
parent 5b37c1f667
commit 00b598c295

View File

@ -51,7 +51,7 @@ class InlineConfig extends Transform {
'<body>',
`<div id="${appMountId}-container">`,
`<script data-flecks="ignore">window.document.querySelector('#${appMountId}-container').style.display = 'none'</script>`,
`<script>${await configSource(this.flecks, this.req)}</script>`,
`<script data-flecks="ignore">${await configSource(this.flecks, this.req)}</script>`,
`<div id="${appMountId}"></div>`,
'</div>',
].join(''),