WIP bunch of stuff

This commit is contained in:
2022-10-16 15:58:23 +02:00
parent b4ff0c8f77
commit ea603804a2
9 changed files with 187 additions and 103 deletions

View File

@ -0,0 +1,13 @@
// @ory/integrations offers a package for integrating with NextJS.
import { config, createApiHandler } from "@ory/integrations/next-edge"
// We need to export the config.
export { config }
// And create the Ory Cloud API "bridge".
export default createApiHandler({
fallbackToPlayground: true,
// Because vercel.app is a public suffix and setting cookies for
// vercel.app is not possible.
dontUseTldForCookieDomain: true,
})