Skip to content

Commit ba4fdce

Browse files
authored
Small fixes for Turborepo + Hono example. (#1181)
1 parent e7b8b5e commit ba4fdce

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

starter/turborepo-with-hono/apps/web/app/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ const API_URL = process.env.VERCEL
2222
: 'http://localhost:3000'
2323

2424
export default async function Home() {
25-
const result = await fetch(API_URL).then((res) => res.text())
25+
const result = await fetch(API_URL)
26+
.then((res) => res.text())
27+
.catch(() => 'Hello from Hono!')
2628

2729
return (
2830
<div className={styles.page}>

starter/turborepo-with-hono/turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"env": ["VERCEL"],
77
"dependsOn": ["^build"],
88
"inputs": ["$TURBO_DEFAULT$", ".env*"],
9-
"outputs": [".next/**", "!.next/cache/**"]
9+
"outputs": [".next/**", "!.next/cache/**", ".vercel/output/**"]
1010
},
1111
"lint": {
1212
"dependsOn": ["^lint"]

0 commit comments

Comments
 (0)