fix: thumbnail not generated on prod

This commit is contained in:
Khairul Hidayat 2024-02-24 08:19:34 +00:00
parent 06b864055c
commit 5b68230734

View File

@ -29,11 +29,11 @@ export const serveHtml = async (
const injectScripts = ['<script src="/js/hook-console.js"></script>'];
// prevent direct access
if (!IS_DEV) {
injectScripts.push(
`<script>if (window === window.parent) {window.location.href = '/';}</script>`
);
}
// if (!IS_DEV) {
// injectScripts.push(
// `<script>if (window === window.parent) {window.location.href = '/';}</script>`
// );
// }
// js import maps
const importMaps = settings?.js?.packages || [];