mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 02:41:35 +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 modalId = `${id}-modal`
|
||||
const modalId = `${id}-modal`;
|
||||
</script>
|
||||
|
||||
<a href={`#${modalId}`} role="button">{text}</a>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user