How to Remove Dev Mode After Deploying to the Cloud?

This topic was automatically generated from Slack. You can find the original thread here.

Hi! I am unable to remove the dev mode once I deploy to the cloud. Locally, I can see that the app uses production. Is there any setting I need to add like configuring my domain?

The doc says

Shipping Connect to production
When you're ready to ship to production:

Visit the pricing page to enable production access
Update your environment to production in your SDK client configuration and / or API calls

My plan is correctly setup, and I’m sending ‘production’ correctly via API.

do I have to verify my domain?

To configure SAML SSO for your Pipedream workspace, you do need to verify ownership of your email domain. This is a requirement for setting up SSO with SAML. However, if you are configuring Google OAuth (not SAML), you can skip the domain verification step. For more details on verifying your email domain, you can refer to the Pipedream documentation on domain verification.

You don’t need to verify your domain. When you say you’re unable to remove the dev mode one you deploy to the cloud, are you reading the environment from an env var or something?

Seems like that’s likely the core issue

yep, but it’s correctly setup, I double checked

Are you using the SDK? It seems like it’s not using the correct environment somewhere.

we’re using the SDK in the frontend, but the backend uses the API

There is nothing you need to do other than setting environment to production, either as a header if using the REST API, or in the SDK initialization.

Alright, thanks for confirming. Maybe SST is playing with my nerves again. Will inspect further