sure,
>package.json
{
"name": "dropbase",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "npm run format && next dev --turbopack",
"build": "next build",
"start": "next start",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"format": "count=$(prettier --write . --log-level silent | grep -v '(unchanged)' | wc -l); echo \"$count files formatted\"",
"check": "npm run lint && npm run format:check",
"format:check": "prettier --check .",
"pages:build": "bunx @cloudflare/next-on-pages",
"preview": "bun pages:build && wrangler pages dev --experimental-vectorize-bind-to-prod --ai",
"deploy": "bun pages:build && wrangler pages deploy",
"cf-typegen": "wrangler types --env-interface CloudflareEnv env.d.ts",
"generate": "drizzle-kit generate",
"migrate": "wrangler d1 migrations apply ragchat --remote",
"studio": "drizzle-kit studio"
},
"dependencies": {
"@cloudflare/ai": "^1.2.2",
"@hono/zod-validator": "^0.4.2",
"@hookform/resolvers": "^3.10.0",
"@phosphor-icons/react": "^2.1.7",
"@radix-ui/react-dialog": "^1.1.5",
"@radix-ui/react-label": "^2.1.1",
"@radix-ui/react-popover": "^1.1.5",
"@radix-ui/react-slot": "^1.1.1",
"@radix-ui/react-tooltip": "^1.1.6",
"@t3-oss/env-nextjs": "^0.11.1",
"better-auth": "^1.1.14",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"drizzle-orm": "^0.38.4",
"hono": "^4.6.17",
"lucide-react": "^0.473.0",
"next": "15.1.4",
"next-themes": "^0.4.4",
"prettier": "^3.4.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-hook-form": "^7.54.2",
"sonner": "^1.7.2",
"tailwind-merge": "^2.6.0",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.24.1"
},
{
"name": "dropbase",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "npm run format && next dev --turbopack",
"build": "next build",
"start": "next start",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"format": "count=$(prettier --write . --log-level silent | grep -v '(unchanged)' | wc -l); echo \"$count files formatted\"",
"check": "npm run lint && npm run format:check",
"format:check": "prettier --check .",
"pages:build": "bunx @cloudflare/next-on-pages",
"preview": "bun pages:build && wrangler pages dev --experimental-vectorize-bind-to-prod --ai",
"deploy": "bun pages:build && wrangler pages deploy",
"cf-typegen": "wrangler types --env-interface CloudflareEnv env.d.ts",
"generate": "drizzle-kit generate",
"migrate": "wrangler d1 migrations apply ragchat --remote",
"studio": "drizzle-kit studio"
},
"dependencies": {
"@cloudflare/ai": "^1.2.2",
"@hono/zod-validator": "^0.4.2",
"@hookform/resolvers": "^3.10.0",
"@phosphor-icons/react": "^2.1.7",
"@radix-ui/react-dialog": "^1.1.5",
"@radix-ui/react-label": "^2.1.1",
"@radix-ui/react-popover": "^1.1.5",
"@radix-ui/react-slot": "^1.1.1",
"@radix-ui/react-tooltip": "^1.1.6",
"@t3-oss/env-nextjs": "^0.11.1",
"better-auth": "^1.1.14",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"drizzle-orm": "^0.38.4",
"hono": "^4.6.17",
"lucide-react": "^0.473.0",
"next": "15.1.4",
"next-themes": "^0.4.4",
"prettier": "^3.4.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-hook-form": "^7.54.2",
"sonner": "^1.7.2",
"tailwind-merge": "^2.6.0",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.24.1"
},
>next.config.ts
how do i do that?
i followed a tutorial on integrating hono in nextjs
>src/app/api/[...route]/route.ts
>src/lib/hono-client.ts