Files
blog-manager/app/site/[...path]/route.ts
2026-11-01 13:23:44 -05:00

10 lines
330 B
TypeScript

import { route } from "@/lib/http";
import { serveSitePath } from "@/lib/files";
export const dynamic = "force-dynamic";
/** The site's stylesheets and public/ files, for the preview iframe. */
export const GET = route<{ params: Promise<{ path: string[] }> }>(async (_req, { params }) =>
serveSitePath((await params).path)
);