WIP bunch of stuff
This commit is contained in:
13
client/pages/api/.ory/[...paths].ts
Normal file
13
client/pages/api/.ory/[...paths].ts
Normal 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,
|
||||
})
|
Reference in New Issue
Block a user