/Knowledge/sources/honojs__hono/llms-full/next-js-hello-world--89ba012a05b0.md
Next.js: Hello World - hono-docs
Next.js: Hello World Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt 2 hello world Summary If you use...
Next.js: Hello World
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#2-hello-world
Summary
If you use the App Router, Edit app/api/[[...route]]/route.ts. Refer to the Supported HTTP Methods section for more options. ```ts i...
Content
If you use the App Router, Edit app/api/[[...route]]/route.ts. Refer to the Supported HTTP Methods section for more options.
import { Hono } from 'hono'
import { handle } from 'hono/vercel'
const app = new Hono().basePath('/api')
app.get('/hello', (c) => {
return c.json({
message: 'Hello Next.js!',
})
})
export const GET = handle(app)
export const POST = handle(app)
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#2-hello-world",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Next.js > 2. Hello World",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 401,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Next.js: Hello World",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}