should put large files to R2 or something and use cdn
should put large files to R2 or something and use cdn


export const dynamicParams = false;

next-cf-demo@0.1.0 preview
npm run pages:build && wrangler pages dev
next-cf-demo@0.1.0 pages:build
npx @cloudflare/next-on-pages
npx vercel build.__NEXT_ON_PAGES__KV_SUSPENSE_CACHE, for us the KV is never being populated with fetch data, even when I use force-cacheexport const dynamicParams = false;export function onRequest(context) {
return new Response("Hello, world!")
}17:20:13.217 ▲ Traced Next.js server files in: 350.916ms
17:20:13.293 ▲ Created all serverless functions in: 75.798ms
17:20:17.060 ▲ Collected static files (public/, static/, .next/static): 8.876ms
17:20:17.580 ▲ Build Completed in .vercel/output [1m]
17:20:18.797 ⚡️ Completed `pnpm dlx vercel build`.
17:20:22.087 ⚡️ Unexpected error: Unexpected character '�' (156:302845)
17:20:23.000 Failed: Error while executing user command. Exited with error code: 1
17:20:23.012 Failed: build command exited with code: 1
17:20:24.263 Failed: error occurred while running build commandnpm run dev__NEXT_ON_PAGES__KV_SUSPENSE_CACHEimport { getAuth, buildClerkProps } from "@clerk/nextjs/server";
import { GetServerSideProps } from "next";
import { ReactElement } from "react";
interface TestProps {
userId: string | null;
}
export const runtime = 'experimental-edge';
const Test = ({ userId }: TestProps): ReactElement => {
return (
<div>
<h1>User Data</h1>
<p>User ID: {userId || "Not signed in"}</p>
</div>
)
}
export default Test;
export const getServerSideProps: GetServerSideProps = async (ctx) => {
const { userId } = getAuth(ctx.req);
return {
props: {
userId: userId || null,
...buildClerkProps(ctx.req)
}
};
};