Skip to content

Commit 8cb7669

Browse files
Add standard Next template generated from create-next-app that will be used by create-cloudflare going forward (#973)
1 parent 73b7111 commit 8cb7669

22 files changed

+9553
-0
lines changed

.changeset/better-paws-shout.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/cloudflare": minor
3+
---
4+
5+
Add standard Next template generated from create-next-app that will be used by create-cloudflare going forward
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Load .env.development* files when running `wrangler dev`
2+
NEXTJS_ENV=development

create-cloudflare/next/.gitignore

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
16+
# next.js
17+
/.next/
18+
/out/
19+
20+
# production
21+
/build
22+
23+
# misc
24+
.DS_Store
25+
*.pem
26+
27+
# debug
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# env files (can opt-in for committing if needed)
34+
.env*
35+
!.env.example
36+
37+
# vercel
38+
.vercel
39+
40+
# typescript
41+
*.tsbuildinfo
42+
next-env.d.ts
43+
44+
# OpenNext
45+
/.open-next
46+
47+
# wrangler files
48+
.wrangler
49+
.dev.vars*
50+
!.dev.vars.example
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files.associations": {
3+
"wrangler.json": "jsonc"
4+
}
5+
}

create-cloudflare/next/README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# OpenNext Starter
2+
3+
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
4+
5+
## Getting Started
6+
7+
Read the documentation at https://opennext.js.org/cloudflare.
8+
9+
## Develop
10+
11+
Run the Next.js development server:
12+
13+
```bash
14+
npm run dev
15+
# or similar package manager command
16+
```
17+
18+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
19+
20+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
21+
22+
## Preview
23+
24+
Preview the application locally on the Cloudflare runtime:
25+
26+
```bash
27+
npm run preview
28+
# or similar package manager command
29+
```
30+
31+
## Deploy
32+
33+
Deploy the application to Cloudflare:
34+
35+
```bash
36+
npm run deploy
37+
# or similar package manager command
38+
```
39+
40+
## Learn More
41+
42+
To learn more about Next.js, take a look at the following resources:
43+
44+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
45+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
46+
47+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!

0 commit comments

Comments
 (0)