Skip to content

Connect and Deploy to Netlify

Authorize your Netlify team and publish a static site or single-page app from Cloud Studio.

Connect Netlify to deploy a static site or single-page app from Cloud Studio to Netlify’s edge network. Use a branch preview to test a change before publishing it for users. The connection belongs to the Netlify team you authorize, so choose the team that should own the site.

Authorize your Netlify team

Open the Netlify connector

In the BhaiCode dashboard, go to Connectors and select Connect on the Netlify card.

Approve the connection

Sign in on the Netlify OAuth consent screen. Select your team and authorize BhaiCode, then return to your project in Cloud Studio.

Check the target site

Make sure the connected Netlify account can access an existing site whose name matches your project’s slug or configured subdomain. A connection alone doesn’t create a site for the deployment.

Choose Netlify in Deploy

Open Deploy and choose Netlify as the target. Review the build settings and environment variables before starting the deployment.

Review a branch preview

Use a Netlify branch preview when you want a separate URL for an experiment. Check the deployment in Netlify before sharing its URL so reviewers open the preview rather than the production site. Open it yourself first: check that the app loads and try the route or interaction that changed.

Netlify also offers form handling. If the site uses forms, submit a test entry on the preview and verify it reaches the intended destination before you publish. A page that renders correctly can still have a broken submission flow.

Check site environment variables

Set API keys and other required configuration in Netlify’s site environment settings rather than assuming BhaiCode copies them. Check that the target site has the values it needs to build and run. If a preview uses a backend, make sure it points to the test resources you intend reviewers to use.

Don’t put secrets in source files to fix a missing variable. Set them in the environment for the intended site, then redeploy and check the resulting URL.

If the deploy fails, use the build log to find the first error. Check the selected team and site before changing build settings or retrying with different credentials.

Next

Was this page helpful?