mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Prefix NGINX urls with origin as well
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
const { children, id, text }: { children: Snippet; id: string; text: string } = $props();
|
const { children, id, text }: { children: Snippet; id: string; text: string } = $props();
|
||||||
|
|
||||||
const modalId = `${id}-modal`
|
const modalId = `${id}-modal`;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<a href={`#${modalId}`} role="button">{text}</a>
|
<a href={`#${modalId}`} role="button">{text}</a>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export const load: PageServerLoad = async ({ params, fetch, cookies, parent }) =
|
|||||||
|
|
||||||
generateStaticFiles(websiteOverview);
|
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 {
|
return {
|
||||||
websiteOverview,
|
websiteOverview,
|
||||||
|
|||||||
Reference in New Issue
Block a user