Skip to content

Commit 403c064

Browse files
committed
🐛 fix ssg for html snippets
1 parent 0e08e1f commit 403c064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builders/ssg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = async function ssg({ output, cache, environment }) {
3939
.find((line) => line.indexOf(stateLookup) > -1)
4040
.split(stateLookup)[1]
4141
.slice(0, -2)
42-
const { instances, page } = JSON.parse(decodeURIComponent(state.replace(/<\\/g, '<')))
42+
const { instances, page } = JSON.parse(decodeURIComponent(state).replace(/<\\/g, '<'))
4343

4444
if (url !== `/nullstack/${application.environment.key}/offline` && url !== '/404') {
4545
pages[url] = page

0 commit comments

Comments
 (0)