Skip to content

Commit ddf6782

Browse files
committed
chore: upgrade nextjs example.
1 parent 31857b5 commit ddf6782

16 files changed

+71
-76
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: 4 additions & 4 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

@@ -18,7 +18,7 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the
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: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
11
{
22
"name": "nextjs",
3-
"version": "4.0.6",
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": {
12-
"next": "14.0.4",
13-
"react": "^18",
14-
"react-dom": "^18"
12+
"react": "^19.0.0",
13+
"react-dom": "^19.0.0",
14+
"next": "15.3.1"
1515
},
1616
"devDependencies": {
17+
"typescript": "^5",
1718
"@types/node": "^20",
18-
"@types/react": "~18.2.0",
19-
"@types/react-dom": "~18.2.0",
20-
"@uiw/react-md-editor": "4.0.6",
21-
"autoprefixer": "^10.0.1",
22-
"eslint": "^8",
23-
"eslint-config-next": "14.0.4",
24-
"postcss": "^8",
25-
"tailwindcss": "^3.3.0",
26-
"typescript": "^5"
19+
"@types/react": "^19",
20+
"@types/react-dom": "^19",
21+
"@tailwindcss/postcss": "^4",
22+
"tailwindcss": "^4"
2723
}
2824
}

example/nextjs/postcss.config.js

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

example/nextjs/postcss.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const config = {
2+
plugins: ["@tailwindcss/postcss"],
3+
};
4+
5+
export default config;

example/nextjs/public/file.svg

Lines changed: 1 addition & 0 deletions
Loading

example/nextjs/public/globe.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)