Skip to content

Commit d188d57

Browse files
Add standard Next template generated from create-next-app that will be used by create-cloudflare going forward
1 parent 73b7111 commit d188d57

22 files changed

+8720
-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

create-cloudflare/next/.dev.vars

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: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.yarn/install-state.gz
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts
37+
38+
# OpenNext
39+
/.open-next
40+
41+
# wrangler files
42+
.wrangler
43+
!.dev.vars*
44+
!.env.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)