cloudflare / cloudflare-docs

Cloudflare’s documentation
https://developers.cloudflare.com
Creative Commons Attribution 4.0 International
3.07k stars 4.71k forks source link

Insufficient information provided in deploying a Next.js site #3818

Closed oscarcao closed 2 years ago

oscarcao commented 2 years ago

Existing documentation URL(s)

Section that requires update

Deploying with Cloudflare Pages

What needs to change?

Next.js has a dependency that requires node version 12.20.0 or higher. The version of node provided by the default Pages configuration is 12.18.0.

How should it change?

There should be a paragraph added to inform users about this and how-to override the default node version setting by pointing the user to the documentation that covers this (https://developers.cloudflare.com/pages/platform/build-configuration/#language-support-and-tools).

Additional information

existing-docs

kristianfreeman commented 2 years ago

@Ekwuno to implement a notice on NODE_VERSION on this page

nativedone commented 2 years ago

@codewithkristian @Ekwuno

I've just started with Cloudflare/Pages.

Am I missing something? I tried to find in the docs how to use next/image with Cloudflare Pages without luck.

I found this link in the Images service https://developers.cloudflare.com/images/image-resizing/integration-with-frameworks/

but using it for images that are on /public gives me 404.

Would you be able to provide any guidance on that?

KianNH commented 2 years ago

We already have this notice on other frameworks - like Astro

image

Copied it over into the Next.js framework in https://github.com/cloudflare/cloudflare-docs/pull/4124