Test website publication and remove collab account

This commit is contained in:
thiloho
2024-09-01 13:37:28 +02:00
parent 187287ec4f
commit 7a6e7f16c5
3 changed files with 36 additions and 4 deletions

View File

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