Skip to content

Commit 3bf96a6

Browse files
committed
example: update nextjs example.
1 parent d589c09 commit 3bf96a6

18 files changed

+258
-81
lines changed

example/nextjs/.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

example/nextjs/.gitignore

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
# dependencies
44
/node_modules
55
/.pnp
6-
.pnp.js
7-
.yarn/install-state.gz
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
812

913
# testing
1014
/coverage
@@ -24,9 +28,10 @@
2428
npm-debug.log*
2529
yarn-debug.log*
2630
yarn-error.log*
31+
.pnpm-debug.log*
2732

28-
# local env files
29-
.env*.local
33+
# env files (can opt-in for committing if needed)
34+
.env*
3035

3136
# vercel
3237
.vercel

example/nextjs/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
1+
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).
22

33
## Getting Started
44

@@ -11,14 +11,14 @@ yarn dev
1111
# or
1212
pnpm dev
1313
# or
14-
bun run dev
14+
bun dev
1515
```
1616

1717
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
1818

1919
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
2020

21-
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
21+
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
2222

2323
## Learn More
2424

@@ -27,10 +27,10 @@ To learn more about Next.js, take a look at the following resources:
2727
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
2828
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
2929

30-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
3131

3232
## Deploy on Vercel
3333

3434
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
3535

36-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.

example/nextjs/next.config.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

example/nextjs/next.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { NextConfig } from 'next';
2+
3+
const nextConfig: NextConfig = {
4+
/* config options here */
5+
};
6+
7+
export default nextConfig;

example/nextjs/package.json

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
11
{
22
"name": "nextjs",
3-
"version": "4.23.10",
3+
"version": "0.1.0",
44
"private": true,
55
"scripts": {
6-
"dev": "next dev",
6+
"dev": "next dev --turbopack",
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint"
1010
},
1111
"dependencies": {
1212
"@uiw/react-codemirror": "4.23.10",
13-
"next": "14.0.3",
1413
"react": "~18.2.0",
14+
"react-dom": "~18.2.0",
1515
"react-codemirror-merge": "4.23.10",
16-
"react-dom": "~18.2.0"
16+
"next": "15.3.1"
1717
},
1818
"devDependencies": {
19+
"typescript": "^5",
1920
"@types/node": "^20",
20-
"@types/react": "^18",
21-
"@types/react-dom": "^18",
22-
"autoprefixer": "^10.0.1",
23-
"eslint": "^8",
24-
"eslint-config-next": "14.0.3",
25-
"postcss": "^8",
26-
"tailwindcss": "^3.3.0",
27-
"typescript": "^5"
21+
"@types/react": "^18.2.0",
22+
"@types/react-dom": "^18.2.0"
2823
}
2924
}

example/nextjs/postcss.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

example/nextjs/public/file.svg

Lines changed: 1 addition & 0 deletions
Loading

example/nextjs/public/globe.svg

Lines changed: 1 addition & 0 deletions
Loading

example/nextjs/public/vercel.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)