diff --git a/starter/turborepo-with-hono/apps/web/app/page.tsx b/starter/turborepo-with-hono/apps/web/app/page.tsx index 0833f22832..73213eec7c 100644 --- a/starter/turborepo-with-hono/apps/web/app/page.tsx +++ b/starter/turborepo-with-hono/apps/web/app/page.tsx @@ -22,7 +22,9 @@ const API_URL = process.env.VERCEL : 'http://localhost:3000' export default async function Home() { - const result = await fetch(API_URL).then((res) => res.text()) + const result = await fetch(API_URL) + .then((res) => res.text()) + .catch(() => 'Hello from Hono!') return (
diff --git a/starter/turborepo-with-hono/turbo.json b/starter/turborepo-with-hono/turbo.json index 42899f06ae..f39e697158 100644 --- a/starter/turborepo-with-hono/turbo.json +++ b/starter/turborepo-with-hono/turbo.json @@ -6,7 +6,7 @@ "env": ["VERCEL"], "dependsOn": ["^build"], "inputs": ["$TURBO_DEFAULT$", ".env*"], - "outputs": [".next/**", "!.next/cache/**"] + "outputs": [".next/**", "!.next/cache/**", ".vercel/output/**"] }, "lint": { "dependsOn": ["^lint"]