Connect the tools your site uses

Supply preview settings for an external service, or connect the writing, development, and search tools your team uses.

Let the preview reach an external service

If an Astro page reads a catalogue or API, the local preview needs a reachable service and the variables your website code expects. Add studio.connections.json beside package.json to declare the fields Studio should ask for. This example defines a server-side catalogue address and access key.

{
  "connections": [{
    "id": "catalogue",
    "label": "Gallery catalogue",
    "fields": [
      { "env": "APP_CATALOGUE_URL", "label": "Service address", "kind": "url" },
      { "env": "APP_CATALOGUE_KEY", "label": "Access key", "kind": "secret" }
    ]
  }]
}

Commit the field definitions. Enter the actual values under Website → Preview connections in Studio. Studio stores them outside the checkout and passes them to the preview process. Keep the key in server-side code. Configure production values separately with the host.

Give a coding assistant access

Open AI connections inside the website and choose Add connection. Name the connection, select its websites, and enable Allow website changes if the assistant should edit content or source. After creating the connection, choose the desktop client and use Copy configuration to set it up.

The assistant and the editor can work on the same website. Inspect changes in Review & publish and publish them from Studio when they’re ready.

Review writing and search performance

For suggested wording, configure the website’s AI writing connection and choose a model. The editor requests a suggestion, compares it with the original, and decides whether to apply it to the draft.

For an existing live site, choose Connect Google Search Console, approve read-only access, select the verified property, and enter its live address. Open Page insights to request impressions, clicks, and reported queries for a published page. Preview URLs and unpublished headlines have no search history of their own.