> ## Documentation Index
> Fetch the complete documentation index at: https://v0.x-docs.novu.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrate Novu with Next.js

## App Router

<CodeGroup>
  ```ts app/api/novu/route.ts theme={null}
  import { serve } from "@novu/framework/next";
  import { myWorkflow } from "../../novu/workflows";

  export const { GET, POST, PUT, OPTIONS } = serve({ workflows: [myWorkflow] });
  ```
</CodeGroup>

## Pages Router

<CodeGroup>
  ```ts pages/api/novu.ts theme={null}
  import { serve } from "@novu/framework/next";
  import { myWorkflow } from '../../novu/workflows';

  export default serve({ workflows: [myWorkflow] });
  ```
</CodeGroup>

Check out a comprehensive [guide on sending notifications in Next.js with React email](/guides/framework-guides/framework-react-email).
