This message was deleted.
# general
m
This message was deleted.
Copy code
local claims = {
  email_verified: true,
} + std.extVar('claims');

{
  identity: {
    traits: {
      [if 'email' in claims && claims.email_verified then 'email' else null]: claims.email   
    }
  }
}
h
Are you using NextJS?
w
yes
h
I don’t quite remember, but I think there are a few limitations with the NextJS integration in production. It’s recommended to use a CNAME for production - it’s faster and more secure. All you need to do is to add a CNAME for your domain, and then point the Ory SDKs and all URLs to that CNAME instead of
/api/.ory/
w
That makes sense, thanks! Will try
So there is no option to set up custom domain for redirect url in free version?
h
if you go to production then it is 29$ per month
because we also pay money for the ssl certificates etc