From fa6f4f4bef8013eab64e4004c02ad4b4b5cf83e3 Mon Sep 17 00:00:00 2001 From: Bruno Bernardino Date: Fri, 26 Sep 2025 10:03:42 +0100 Subject: [PATCH] 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. --- docs/latest/examples/migration-guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/latest/examples/migration-guide.md b/docs/latest/examples/migration-guide.md index a5c08316..fa43d59a 100644 --- a/docs/latest/examples/migration-guide.md +++ b/docs/latest/examples/migration-guide.md @@ -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 } };