Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@vercel/related-projects

Package Overview
Dependencies
Maintainers
272
Versions
1
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.0
Version published
Maintainers
272
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 13 Feb 2025

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