mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 19:01:35 +01:00
Serve routes without .html file extension
This commit is contained in:
@@ -58,13 +58,13 @@ export const load: PageServerLoad = async ({ params, fetch, cookies, parent }) =
|
||||
: process.env.ORIGIN
|
||||
? process.env.ORIGIN
|
||||
: "http://localhost:18000"
|
||||
}/previews/${websiteOverview.id}/index.html`;
|
||||
}/previews/${websiteOverview.id}/`;
|
||||
|
||||
const websiteProdUrl = dev
|
||||
? `http://localhost:18000/${websiteOverview.id}/index.html`
|
||||
? `http://localhost:18000/${websiteOverview.id}/`
|
||||
: process.env.ORIGIN
|
||||
? process.env.ORIGIN.replace("//", `//${websiteOverview.id}.`)
|
||||
: `http://localhost:18000/${websiteOverview.id}/index.html`;
|
||||
: `http://localhost:18000/${websiteOverview.id}/`;
|
||||
|
||||
return {
|
||||
websiteOverview,
|
||||
|
||||
Reference in New Issue
Block a user