docs: fix wrong variable name in migration guide (#3496)

You have `export const handlers = ` when it needs to be `export const
handler = `.

I'm unsure if there's any build process I need to run for this.
This commit is contained in:
Bruno Bernardino
2025-09-26 11:03:42 +02:00
committed by GitHub
parent 1c1ea06138
commit fa6f4f4bef
+2 -2
View File
@@ -261,7 +261,7 @@ generalized to render JSX, so it's no longer needed.
Fresh 1.x:
```ts
export const handlers = {
export const handler = {
async GET(req, ctx) {
const data = await Query();
await ctx.render({ value: data });
@@ -276,7 +276,7 @@ export default function Page({ data }) {
Fresh 2 (removed):
```ts
export const handlers = {
export const handler = {
async GET(ctx) {
const data = await Query();
return { data: { value: data } };