From b1db5ce87798410c2e52f07f0d988cef65d26803 Mon Sep 17 00:00:00 2001 From: Jie <51285767+DimplesY@users.noreply.github.com> Date: Tue, 14 Oct 2025 13:57:38 +0800 Subject: [PATCH] docs: update next.js integrations doc --- docs/integrations/nextjs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/integrations/nextjs.md b/docs/integrations/nextjs.md index 3444caf1..9f42bb4a 100644 --- a/docs/integrations/nextjs.md +++ b/docs/integrations/nextjs.md @@ -58,7 +58,7 @@ For example, if you place Elysia server in **app/user/[[...slugs]]/route.ts**, y ```typescript [app/user/[[...slugs]]/route.ts] import { Elysia, t } from 'elysia' -export default new Elysia({ prefix: '/user' }) // [!code ++] +const app = new Elysia({ prefix: '/user' }) // [!code ++] .get('/', 'Hello Nextjs') .post('/', ({ body }) => body, { body: t.Object({