File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed
Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -41,4 +41,5 @@ yarn-error.log*
4141next-env.d.ts
4242
4343dist /
44- release /
44+ release /
45+ public /
Original file line number Diff line number Diff line change 1+ import { Hono } from "hono" ;
2+ import api from "./api/api" ;
3+
4+ const app = new Hono ( ) ;
5+
6+ // API routes
7+ app . route ( "/" , api ) ;
8+
9+ // Static files and SPA fallback handled by Vercel via public/ directory and rewrites
10+ // This file is the API entry point for Vercel's backend detection
11+
12+ export default app ;
Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " https://openapi.vercel.sh/vercel.json" ,
3+ "installCommand" : " bun install" ,
4+ "buildCommand" : " bun run build:browser && mkdir -p public && cp -r dist/browser/* public/" ,
5+ "outputDirectory" : " public" ,
6+ "rewrites" : [
7+ { "source" : " /api/:path*" , "destination" : " /api/:path*" },
8+ { "source" : " /((?!api/).*)" , "destination" : " /index.html" }
9+ ]
10+ }
You can’t perform that action at this time.
0 commit comments