initial commit
This commit is contained in:
9
app/site/[...path]/route.ts
Normal file
9
app/site/[...path]/route.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
);
|
||||
Reference in New Issue
Block a user