Skip to content
Dashboard

Sync projects with @vercel/related-projects

- const host = process.env.API_URL as string
+ const host = withRelatedProject({
+ projectName: "api-project",
+ defaultHost: process.env.API_URL as string,
+ });

Example of connecting a frontend project to a separate backend API.

Ready to deploy?