Skip to content

Commit fa6f4f4

Browse files
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.
1 parent 1c1ea06 commit fa6f4f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/latest/examples/migration-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ generalized to render JSX, so it's no longer needed.
261261
Fresh 1.x:
262262

263263
```ts
264-
export const handlers = {
264+
export const handler = {
265265
async GET(req, ctx) {
266266
const data = await Query();
267267
await ctx.render({ value: data });
@@ -276,7 +276,7 @@ export default function Page({ data }) {
276276
Fresh 2 (removed):
277277

278278
```ts
279-
export const handlers = {
279+
export const handler = {
280280
async GET(ctx) {
281281
const data = await Query();
282282
return { data: { value: data } };

0 commit comments

Comments
 (0)