Skip to content

Commit 027a038

Browse files
committed
chore: remove next/font for build fatal error #28
1 parent 81e9607 commit 027a038

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// 使用 IntelliSense 了解相关属性。
3+
// 悬停以查看现有属性的描述。
4+
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"command": "npm run build",
9+
"name": "Debug next-app",
10+
"request": "launch",
11+
"type": "node-terminal",
12+
"cwd": "${workspaceFolder}/apps/next-app"
13+
}
14+
]
15+
}

apps/next-app/pages/index.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Image from 'next/image'
2-
import { Inter } from 'next/font/google'
2+
// import { Inter } from 'next/font/google'
33

4-
const inter = Inter({ subsets: ['latin'] })
4+
// const inter = Inter({ subsets: ['latin'] })
55

66
export default function Home() {
77
return (
@@ -34,10 +34,10 @@ export default function Home() {
3434
target="_blank"
3535
rel="noopener noreferrer"
3636
>
37-
<h2 className={`${inter.className} mb-3 text-2xl font-semibold`}>
37+
<h2 className={` mb-3 text-2xl font-semibold`}>
3838
Docs <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">-&gt;</span>
3939
</h2>
40-
<p className={`${inter.className} m-0 max-w-[30ch] text-sm opacity-50`}>Find in-depth information about Next.js features and API.</p>
40+
<p className={` m-0 max-w-[30ch] text-sm opacity-50`}>Find in-depth information about Next.js features and API.</p>
4141
</a>
4242

4343
<a
@@ -46,10 +46,10 @@ export default function Home() {
4646
target="_blank"
4747
rel="noopener noreferrer"
4848
>
49-
<h2 className={`${inter.className} mb-3 text-2xl font-semibold`}>
49+
<h2 className={` mb-3 text-2xl font-semibold`}>
5050
Learn <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">-&gt;</span>
5151
</h2>
52-
<p className={`${inter.className} m-0 max-w-[30ch] text-sm opacity-50`}>Learn about Next.js in an interactive course with&nbsp;quizzes!</p>
52+
<p className={` m-0 max-w-[30ch] text-sm opacity-50`}>Learn about Next.js in an interactive course with&nbsp;quizzes!</p>
5353
</a>
5454

5555
<a
@@ -58,10 +58,10 @@ export default function Home() {
5858
target="_blank"
5959
rel="noopener noreferrer"
6060
>
61-
<h2 className={`${inter.className} mb-3 text-2xl font-semibold`}>
61+
<h2 className={` mb-3 text-2xl font-semibold`}>
6262
Templates <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">-&gt;</span>
6363
</h2>
64-
<p className={`${inter.className} m-0 max-w-[30ch] text-sm opacity-50`}>Discover and deploy boilerplate example Next.js&nbsp;projects.</p>
64+
<p className={` m-0 max-w-[30ch] text-sm opacity-50`}>Discover and deploy boilerplate example Next.js&nbsp;projects.</p>
6565
</a>
6666

6767
<a
@@ -70,10 +70,10 @@ export default function Home() {
7070
target="_blank"
7171
rel="noopener noreferrer"
7272
>
73-
<h2 className={`${inter.className} mb-3 text-2xl font-semibold`}>
73+
<h2 className={` mb-3 text-2xl font-semibold`}>
7474
Deploy <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">-&gt;</span>
7575
</h2>
76-
<p className={`${inter.className} m-0 max-w-[30ch] text-sm opacity-50`}>Instantly deploy your Next.js site to a shareable URL with Vercel.</p>
76+
<p className={` m-0 max-w-[30ch] text-sm opacity-50`}>Instantly deploy your Next.js site to a shareable URL with Vercel.</p>
7777
</a>
7878
</div>
7979
</main>

0 commit comments

Comments
 (0)