10 lines
330 B
TypeScript
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)
|
|
);
|