diff --git a/sdks/framework/typescript/client.mdx b/sdks/framework/typescript/client.mdx index cb6f3c7d..53db7d64 100644 --- a/sdks/framework/typescript/client.mdx +++ b/sdks/framework/typescript/client.mdx @@ -41,10 +41,18 @@ When your service is running in development mode `process.env.NODE_ENV=developme ## Code Example ```typescript -import { Client } from "@novu/framework"; - -const client = new Client({ - secretKey: "my-secret-key", - strictAuthentication: false, +import { Client as NovuFrameworkClient } from "@novu/framework"; +import { serve } from "@novu/framework/next"; +import { passwordResetWorkflow } from "./workflows"; + +export const { GET, POST, OPTIONS } = serve({ + client: new NovuFrameworkClient({ + secretKey: process.env.NOVU_SECRET_KEY || "ACTUAL_NOVU_SECRET_KEY_VALUE", + strictAuthentication: false, + }), + workflows: [ + /* all workflows */ + passwordResetWorkflow + ], }); ```