can anyone give me a link to a repository where latest nextjs is working with other features of cf l
can anyone give me a link to a repository where latest nextjs is working with other features of cf like kv?
<Image /> component it doesn't work, and no images serve even the static in the public directorypnpm create cloudflare it will initialise a new Next.js project for you. In there, you will find commented out example usage of KV. You can uncomment this in next.config.mjs, env.d.ts, and app/api/hello/route.ts. Then if you run your app, you will see it putting + getting with kvchris.scholarcrafter.com/_next/... when they exist at scholarcrafter.com/_next/...npx wrangler pages deployment tailrevalidateTag and/or revalidatePath? Currently I get an internal server error when trying to call them from Cloudflare Pages. revalidateTag? Any estimations for it?Cannot perform I/O on behalf of a different request. I/O objects (such as streams, request/response bodies, and others) created in the context of one request handler cannot be accessed from a different request's handler. This is a limitation of Cloudflare Workers which allows us to improve overall performancedeployment tail trick) and create an issue if it's a next-on-pages bug. Thanks @James !https://scholarcrafter.com/chris/, req.url)@neondatabase/serverless with the error message Reflect.get called on non-object. I've checked the issue raised on this page https://github.com/cloudflare/next-on-pages/issues/499.<Image />pnpm create cloudflarenext.config.mjsenv.d.tsapp/api/hello/route.tschris.scholarcrafter.com/_next/...scholarcrafter.com/_next/...npx wrangler pages deployment tailrevalidateTagrevalidateTagrevalidatePathCannot perform I/O on behalf of a different request. I/O objects (such as streams, request/response bodies, and others) created in the context of one request handler cannot be accessed from a different request's handler. This is a limitation of Cloudflare Workers which allows us to improve overall performancedeployment tailhttps://scholarcrafter.com/chris/@neondatabase/serverlessReflect.get called on non-objectexport async function generateStaticParams() {
const response = await getRequest("PROJECTS");
const projects: Project[] = await response.json();
if (!projects || projects.length === 0) {
return [];
}
return projects.map((project) => ({
name: project.name.toLowerCase().replaceAll(" ", "-"),
}));
}
const Project = async ({ params }: { params: { name: string } }) => {
const response = await getRequest("PROJECTS");
const projects: Project[] = await response.json();
if (!projects || projects.length === 0) {
return <div>No projects available</div>;
}
const specificProject = projects.find(
(project) => project.name.toLowerCase().replaceAll(" ", "-") === params.name
);
if (!specificProject) {
return <div>Project not found</div>;
}
return <ProjectPage project={specificProject} />;
};
export default Project;