Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

@vercel/related-projects

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/related-projects

Vercel utilities for working with related projects

canary
latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
2
Created
Source

@vercel/related-projects

Utilities for stitching together Vercel deployments across multiple projects.

Usage

Install

pnpm add @vercel/related-projects

{
  "relatedProjects": ["prj_123", "prj_456"]
}
import { relatedProjects } from '@vercel/related-projects';

// fully typed env variable
const projects = relatedProjects();
import { withRelatedProject } from '@vercel/related-projects';

const apiHost = withRelatedProject({
  projectName: 'my-api-project',
  // used as a fallback
  defaultHost: process.env.API_HOST,
});

This can replace all usages of:

const apiHost = process.env.API_HOST;
import type { VercelRelatedProject } from '@vercel/related-projects';

FAQs

Package last updated on 20 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts