Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Pages] nextjs deployment guide #12901

Merged
merged 13 commits into from
Feb 9, 2024
Merged

Conversation

deadlypants1973
Copy link
Contributor

@deadlypants1973 deadlypants1973 commented Feb 8, 2024

Reinstate the static guide.
Iterate on new fullstack guide.
PCX-9715
closes #12707

Copy link

github-actions bot commented Feb 8, 2024

This PR changes current filenames or deletes current files. Make sure you have redirects set up to cover the following paths:

  • /pages/framework-guides/deploy-a-nextjs-site/

Copy link

cloudflare-workers-and-pages bot commented Feb 8, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 53e0abd
Status: ✅  Deploy successful!
Preview URL: https://3749fd47.cloudflare-docs-7ou.pages.dev
Branch Preview URL: https://kate-fixes-nextguide.cloudflare-docs-7ou.pages.dev

View logs

@github-actions github-actions bot added size/m and removed size/s labels Feb 8, 2024
@github-actions github-actions bot added size/l and removed size/m labels Feb 9, 2024
@deadlypants1973 deadlypants1973 marked this pull request as ready for review February 9, 2024 18:06
@deadlypants1973 deadlypants1973 requested review from a team as code owners February 9, 2024 18:06
pcx_content_type: navigation
title: Deploy a Next.js site
meta:
description: React framework for building full-stack web applications.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: React framework for building full-stack web applications.
description: Next.js is a React framework for building full-stack web applications.


## Create a new project using the `create-cloudflare` CLI (C3)

Open up your terminal and run the following command to create a new Next.js site. Your Next.js site is configured for Cloudflare Pages using the [`create-cloudflare` CLI (C3)](https://github.com/cloudflare/workers-sdk/tree/main/packages/create-cloudflare).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Should we link to Dev Docs instead? URL would be /pages/get-started/c3/.

$ npx wrangler pages dev .vercel/output/static --compatibility-flag=nodejs_compat
```

By doing this, you can run your application locally to make sure everything is working as you expect it to.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Note sure if "this" refers to the last step or the entire procedure.

If you have created your project without C3, run:

```sh
$ npx @cloudflare/next-on-pages
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: the "official" build command (from the preset) includes the major version (@1):

$ npx @cloudflare/next-on-pages@1

deadlypants1973 and others added 2 commits February 9, 2024 19:26
PCX

Co-authored-by: Pedro Sousa <680496+pedrosousa@users.noreply.github.com>
@deadlypants1973 deadlypants1973 merged commit a73b550 into production Feb 9, 2024
7 checks passed
@deadlypants1973 deadlypants1973 deleted the kate/fixes-nextguide branch February 9, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants