File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
starter/turborepo-with-hono/apps Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -26,3 +26,4 @@ lerna-debug.log*
2626
2727# misc
2828.DS_Store
29+ .vercel
Original file line number Diff line number Diff 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
2121export 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
You can’t perform that action at this time.
0 commit comments