Skip to content

Commit a3f37c5

Browse files
authored
Tweaks to Turborepo + Hono example (#1169)
1 parent 9db7069 commit a3f37c5

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

starter/turborepo-with-hono/apps/api/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ lerna-debug.log*
2626

2727
# misc
2828
.DS_Store
29+
.vercel

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ const ThemeImage = (props: Props) => {
1212

1313
return (
1414
<>
15-
<Image {...rest} src={srcLight} className="imgLight" />
16-
<Image {...rest} src={srcDark} className="imgDark" />
15+
<Image {...rest} src={srcLight} className="imgLight" alt="" />
16+
<Image {...rest} src={srcDark} className="imgDark" alt="" />
1717
</>
1818
)
1919
}
2020

2121
export default async function Home() {
22-
const result = await fetch('http://localhost:3000').then((res) => res.text())
22+
const result = await fetch(
23+
process.env.VERCEL ? 'TODO' : 'http://localhost:3000'
24+
).then((res) => res.text())
2325

2426
return (
2527
<div className={styles.page}>
@@ -40,7 +42,7 @@ export default async function Home() {
4042
<li>Save and see your changes instantly.</li>
4143
</ol>
4244

43-
<div>{result}</div>
45+
<div>{result ?? 'Hello from the Hono API!'}</div>
4446

4547
<div className={styles.ctas}>
4648
<a

0 commit comments

Comments
 (0)