Arod1207A
Convex Community8mo ago
2 replies
Arod1207

NODE_ENV comes back as development

I am trying to put my first site into production. I am using netlify to host and stripe for payments. Right now I am using the stripe test keys with the prod db. When I get to my success page, I am redirected back to my localhost. Convex shows env='development'. I can't figure out what I am doing wrong

 const baseUrl =
      process.env.NODE_ENV === 'development'
        ? 'http://localhost:3000'
        : process.env.NEXT_PUBLIC_HOST_URL
Was this page helpful?