Integrations with Ory
This repository contains integrations for connecting with Ory Cloud.
Table of Contents
NextJS / Vercel
To connect a NextJS (optionally deployed via Vercel) with Ory, do the following
in your NextJS App:
$ npm i --save @ory/integrations
Then, add create a file at <your-nextjs-app>/api/.ory/[...paths.ts]
with the
following contents:
import { nextjs } from '@ory/integrations'
export const config = nextjs.config
export default nextjs.createApiHandler({
})
You need to set the environment variable ORY_SDK_URL
to your
Ory Cloud Project SDK URL. For
a list of available options head over to
src/nextjs/index.ts
.