Selfhost/migrate #1

Open
tyler wants to merge 21 commits from TOC/route-commerce:selfhost/migrate into main
Showing only changes of commit 3f4145e800 - Show all commits
+4
View File
@@ -1,6 +1,10 @@
import { MetadataRoute } from "next"; import { MetadataRoute } from "next";
import { getActiveStopsForSitemap } from "@/actions/stops"; import { getActiveStopsForSitemap } from "@/actions/stops";
// Sitemap calls a server action that needs the database — render at request time
// rather than build time so the build doesn't require PostgREST to be up.
export const dynamic = "force-dynamic";
const BASE_URL = process.env.NEXT_PUBLIC_SITE_URL ?? "https://yourdomain.com"; const BASE_URL = process.env.NEXT_PUBLIC_SITE_URL ?? "https://yourdomain.com";
export default async function sitemap(): Promise<MetadataRoute.Sitemap> { export default async function sitemap(): Promise<MetadataRoute.Sitemap> {