mirror of
https://github.com/khairul169/code-share.git
synced 2025-04-28 16:49:36 +07:00
fix: thumbnail not generated on prod
This commit is contained in:
parent
06b864055c
commit
5b68230734
@ -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 || [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user