Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
PUBLIC_DEV="true"
PUBLIC_BASE_URL="http://localhost:5173"
PUBLIC_GTM_ID=""
PUBLIC_GTAG_ID=""
2 changes: 1 addition & 1 deletion src/content/docs/environments.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'environments'
title: "environments"
description: "Configure ESLint and TypeScript for Lapikit's custom <kit:*> syntax. Fix false positives, suppress ts(6133) warnings, and set up your editor for the best DX."
---

Expand Down
5 changes: 3 additions & 2 deletions src/routes/sitemap.xml/+server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { docsPaths } from '$lib';
import { PUBLIC_BASE_URL } from '$env/static/public';

export const prerender = true;

Expand All @@ -14,8 +15,8 @@ function toUrl(path: string) {
return route || '/';
}

export async function GET({ request }) {
const baseUrl = new URL(request.url).origin;
export async function GET() {
const baseUrl = PUBLIC_BASE_URL.replace(/\/$/, '');

const routes = [...Object.keys(pageModules), ...Object.keys(markdownModules)]
.map(toUrl)
Expand Down