Skip to content

Commit c19c3fa

Browse files
authored
test(deps): update examples/nextjs (e2) to v15 (#1345)
nextjs update to 15.1.4 react update to 19.0.0
1 parent 7271bed commit c19c3fa

23 files changed

+2781
-664
lines changed

examples/nextjs/.gitignore

+17-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
# dependencies
44
/node_modules
55
/.pnp
6-
.pnp.js
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
712

813
# testing
914
/coverage
@@ -17,14 +22,20 @@
1722

1823
# misc
1924
.DS_Store
25+
*.pem
2026

2127
# debug
2228
npm-debug.log*
2329
yarn-debug.log*
2430
yarn-error.log*
31+
.pnpm-debug.log*
2532

26-
# local env files
27-
.env.local
28-
.env.development.local
29-
.env.test.local
30-
.env.production.local
33+
# env files (can opt-in for committing if needed)
34+
.env*
35+
36+
# vercel
37+
.vercel
38+
39+
# typescript
40+
*.tsbuildinfo
41+
next-env.d.ts

examples/nextjs/README.md

+34-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
11
# example: nextjs
22

3-
This example is built based on the instructions from [Learn Next.js](https://nextjs.org/learn).
3+
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).
4+
5+
```shell
6+
npx create-next-app@latest nextjs --js --tailwind --no-eslint --app --src-dir --turbopack --no-import-alias --use-npm
7+
```
8+
9+
## Getting Started
10+
11+
First, run the development server:
12+
13+
```bash
14+
npm run dev
15+
```
16+
17+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18+
19+
You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file.
20+
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.
22+
23+
## Learn More
24+
25+
To learn more about Next.js, take a look at the following resources:
26+
27+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29+
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31+
32+
## Deploy on Vercel
33+
34+
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.
35+
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.

examples/nextjs/cypress.config.js

-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ const { defineConfig } = require("cypress");
33
module.exports = defineConfig({
44
fixturesFolder: false,
55
e2e: {
6-
setupNodeEvents(on, config) {
7-
// implement node event listeners here
8-
},
96
supportFile: false,
107
baseUrl: 'http://localhost:3000',
118
},
+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
describe('example: nextjs', () => {
22
it('loads correctly', () => {
33
cy.visit('/')
4-
cy.contains('Welcome to Next.js!')
4+
cy.title().should('eq', 'Create Next App')
5+
cy.contains('Read our docs')
56
})
67
})

examples/nextjs/jsconfig.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"compilerOptions": {
3+
"paths": {
4+
"@/*": ["./src/*"]
5+
}
6+
}
7+
}

examples/nextjs/next.config.mjs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {};
3+
4+
export default nextConfig;

0 commit comments

Comments
 (0)