Skip to content

Commit 1bf19d6

Browse files
authored
test(deps): update Next.js example to 16.0.6 (#1587)
* test(deps): update Next.js example to 16.0.3 * add distDir back to config * update next to 16.0.6 * fix examples/nextjs/package.json linting * [run CI] - apparent check:markdown-links flake
1 parent 99bbf5d commit 1bf19d6

File tree

9 files changed

+941
-1503
lines changed

9 files changed

+941
-1503
lines changed

examples/nextjs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
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).
44

55
```shell
6-
npx create-next-app@latest nextjs --js --tailwind --no-eslint --app --src-dir --turbopack --no-import-alias --use-npm
6+
npx create-next-app@latest nextjs --js --src-dir --use-npm --yes
77
```
88

99
## Getting Started

examples/nextjs/cypress/e2e/spec.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ describe('example: nextjs', () => {
22
it('loads correctly', () => {
33
cy.visit('/')
44
cy.title().should('eq', 'Create Next App')
5-
cy.contains('Read our docs')
5+
cy.contains('get started')
66
})
77
})

examples/nextjs/next.config.mjs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ const __dirname = path.dirname(__filename)
77

88
const nextConfig = {
99
distDir: 'build',
10-
outputFileTracingRoot: __dirname,
11-
eslint: {
12-
// Warning: This allows production builds to successfully complete even if
13-
// your project has ESLint errors.
14-
ignoreDuringBuilds: true,
10+
turbopack: {
11+
root: __dirname,
1512
},
1613
};
1714

examples/nextjs/package-lock.json

Lines changed: 887 additions & 1397 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/nextjs/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
22
"name": "example-nextjs",
3-
"version": "2.0.0",
3+
"version": "3.0.0",
44
"description": "Example using Next.js",
55
"private": true,
66
"scripts": {
7-
"dev": "next dev --turbopack",
7+
"dev": "next dev",
88
"build": "next build",
99
"start": "next start",
1010
"test": "cypress run"
1111
},
1212
"dependencies": {
13-
"next": "^15.5.2",
14-
"react": "^19.1.1",
15-
"react-dom": "^19.1.1"
13+
"next": "^16.0.6",
14+
"react": "^19.2.0",
15+
"react-dom": "^19.2.0"
1616
},
1717
"devDependencies": {
18+
"@tailwindcss/postcss": "^4.1.17",
1819
"cypress": "15.7.0",
19-
"postcss": "^8.5.6",
20-
"tailwindcss": "^3.4.17"
20+
"tailwindcss": "^4"
2121
}
2222
}

examples/nextjs/postcss.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
/** @type {import('postcss-load-config').Config} */
21
const config = {
32
plugins: {
4-
tailwindcss: {},
3+
"@tailwindcss/postcss": {},
54
},
65
};
76

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import 'tailwindcss';
42

53
:root {
64
--background: #ffffff;
75
--foreground: #171717;
86
}
97

8+
@theme inline {
9+
--color-background: var(--background);
10+
--color-foreground: var(--foreground);
11+
--font-sans: var(--font-geist-sans);
12+
--font-mono: var(--font-geist-mono);
13+
}
14+
1015
@media (prefers-color-scheme: dark) {
1116
:root {
1217
--background: #0a0a0a;
@@ -15,7 +20,7 @@
1520
}
1621

1722
body {
18-
color: var(--foreground);
1923
background: var(--background);
24+
color: var(--foreground);
2025
font-family: Arial, Helvetica, sans-serif;
2126
}

examples/nextjs/src/app/page.js

Lines changed: 33 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,41 @@ import Image from "next/image";
22

33
export default function Home() {
44
return (
5-
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
6-
<main className="flex flex-col gap-8 row-start-2 items-center sm:items-start">
5+
<div className="flex min-h-screen items-center justify-center bg-zinc-50 font-sans dark:bg-black">
6+
<main className="flex min-h-screen w-full max-w-3xl flex-col items-center justify-between py-32 px-16 bg-white dark:bg-black sm:items-start">
77
<Image
88
className="dark:invert"
99
src="/next.svg"
1010
alt="Next.js logo"
11-
width={180}
12-
height={38}
11+
width={100}
12+
height={20}
1313
priority
1414
/>
15-
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
16-
<li className="mb-2">
17-
Get started by editing{" "}
18-
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold">
19-
src/app/page.js
20-
</code>
21-
.
22-
</li>
23-
<li>Save and see your changes instantly.</li>
24-
</ol>
25-
26-
<div className="flex gap-4 items-center flex-col sm:flex-row">
15+
<div className="flex flex-col items-center gap-6 text-center sm:items-start sm:text-left">
16+
<h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
17+
To get started, edit the page.js file.
18+
</h1>
19+
<p className="max-w-md text-lg leading-8 text-zinc-600 dark:text-zinc-400">
20+
Looking for a starting point or more instructions? Head over to{" "}
21+
<a
22+
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
23+
className="font-medium text-zinc-950 dark:text-zinc-50"
24+
>
25+
Templates
26+
</a>{" "}
27+
or the{" "}
28+
<a
29+
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
30+
className="font-medium text-zinc-950 dark:text-zinc-50"
31+
>
32+
Learning
33+
</a>{" "}
34+
center.
35+
</p>
36+
</div>
37+
<div className="flex flex-col gap-4 text-base font-medium sm:flex-row">
2738
<a
28-
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5"
39+
className="flex h-12 w-full items-center justify-center gap-2 rounded-full bg-foreground px-5 text-background transition-colors hover:bg-[#383838] dark:hover:bg-[#ccc] md:w-[158px]"
2940
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
3041
target="_blank"
3142
rel="noopener noreferrer"
@@ -34,68 +45,21 @@ export default function Home() {
3445
className="dark:invert"
3546
src="/vercel.svg"
3647
alt="Vercel logomark"
37-
width={20}
38-
height={20}
48+
width={16}
49+
height={16}
3950
/>
40-
Deploy now
51+
Deploy Now
4152
</a>
4253
<a
43-
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:min-w-44"
54+
className="flex h-12 w-full items-center justify-center rounded-full border border-solid border-black/[.08] px-5 transition-colors hover:border-transparent hover:bg-black/[.04] dark:border-white/[.145] dark:hover:bg-[#1a1a1a] md:w-[158px]"
4455
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
4556
target="_blank"
4657
rel="noopener noreferrer"
4758
>
48-
Read our docs
59+
Documentation
4960
</a>
5061
</div>
5162
</main>
52-
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center">
53-
<a
54-
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
55-
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
56-
target="_blank"
57-
rel="noopener noreferrer"
58-
>
59-
<Image
60-
aria-hidden
61-
src="/file.svg"
62-
alt="File icon"
63-
width={16}
64-
height={16}
65-
/>
66-
Learn
67-
</a>
68-
<a
69-
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
70-
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
71-
target="_blank"
72-
rel="noopener noreferrer"
73-
>
74-
<Image
75-
aria-hidden
76-
src="/window.svg"
77-
alt="Window icon"
78-
width={16}
79-
height={16}
80-
/>
81-
Examples
82-
</a>
83-
<a
84-
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
85-
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
86-
target="_blank"
87-
rel="noopener noreferrer"
88-
>
89-
<Image
90-
aria-hidden
91-
src="/globe.svg"
92-
alt="Globe icon"
93-
width={16}
94-
height={16}
95-
/>
96-
Go to nextjs.org →
97-
</a>
98-
</footer>
9963
</div>
10064
);
10165
}

examples/nextjs/tailwind.config.mjs

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

0 commit comments

Comments
 (0)