Skip to content

Commit

Permalink
test(deps): update examples/nextjs (e2) to v15 (#1345)
Browse files Browse the repository at this point in the history
nextjs update to 15.1.4
react update to 19.0.0
  • Loading branch information
MikeMcC399 authored Jan 24, 2025
1 parent 7271bed commit c19c3fa
Show file tree
Hide file tree
Showing 23 changed files with 2,781 additions and 664 deletions.
23 changes: 17 additions & 6 deletions examples/nextjs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
# dependencies
/node_modules
/.pnp
.pnp.js
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage
Expand All @@ -17,14 +22,20 @@

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
35 changes: 34 additions & 1 deletion examples/nextjs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# example: nextjs

This example is built based on the instructions from [Learn Next.js](https://nextjs.org/learn).
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).

```shell
npx create-next-app@latest nextjs --js --tailwind --no-eslint --app --src-dir --turbopack --no-import-alias --use-npm
```

## Getting Started

First, run the development server:

```bash
npm run dev
```

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

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

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.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

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

## Deploy on Vercel

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.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
3 changes: 0 additions & 3 deletions examples/nextjs/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ const { defineConfig } = require("cypress");
module.exports = defineConfig({
fixturesFolder: false,
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
},
supportFile: false,
baseUrl: 'http://localhost:3000',
},
Expand Down
3 changes: 2 additions & 1 deletion examples/nextjs/cypress/e2e/spec.cy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
describe('example: nextjs', () => {
it('loads correctly', () => {
cy.visit('/')
cy.contains('Welcome to Next.js!')
cy.title().should('eq', 'Create Next App')
cy.contains('Read our docs')
})
})
7 changes: 7 additions & 0 deletions examples/nextjs/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
}
}
4 changes: 4 additions & 0 deletions examples/nextjs/next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};

export default nextConfig;
Loading

0 comments on commit c19c3fa

Please sign in to comment.