Prefix NGINX urls with origin as well

This commit is contained in:
thiloho
2024-08-24 21:57:41 +02:00
parent 0806293f05
commit 329927f126
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
const { children, id, text }: { children: Snippet; id: string; text: string } = $props();
const modalId = `${id}-modal`
const modalId = `${id}-modal`;
</script>
<a href={`#${modalId}`} role="button">{text}</a>

View File

@@ -28,7 +28,7 @@ export const load: PageServerLoad = async ({ params, fetch, cookies, parent }) =
generateStaticFiles(websiteOverview);
const websitePreviewUrl = `${dev ? "http://localhost:18000" : ""}/previews/${websiteOverview.id}/index.html`;
const websitePreviewUrl = `${dev ? "http://localhost:18000" : process.env.ORIGIN}/previews/${websiteOverview.id}/index.html`;
return {
websiteOverview,