Skip to content

Commit e25cfdf

Browse files
committed
fix: use environment variable for base URL in sitemap generation
1 parent 41d2634 commit e25cfdf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

apps/web-roo-code/.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ NEXT_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com
66
# Basin Form Endpoint for Static Form Submissions
77
# Replace this with your actual Basin form endpoint (e.g., https://usebasin.com/f/your-form-id)
88
NEXT_PUBLIC_BASIN_ENDPOINT=https://usebasin.com/f/your-form-id-here
9+
10+
# Site URL Configuration
11+
# Used for generating absolute URLs in sitemap and other contexts
12+
NEXT_PUBLIC_SITE_URL=https://roocode.com

apps/web-roo-code/src/app/sitemap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { MetadataRoute } from "next"
22

33
export default function sitemap(): MetadataRoute.Sitemap {
4-
const baseUrl = "https://roocode.com"
4+
const baseUrl = process.env.NEXT_PUBLIC_SITE_URL || "https://roocode.com"
55

66
return [
77
{

0 commit comments

Comments
 (0)