🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@webiny/wcp

Package Overview
Dependencies
Maintainers
1
Versions
390
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webiny/wcp

A set of Webiny Control Panel (WCP)-related utilities.

latest
Source
npmnpm
Version
5.43.5
Version published
Weekly downloads
116
-66.38%
Maintainers
1
Weekly downloads
 
Created
Source

@webiny/wcp

code style: prettier PRs Welcome

A set of Webiny Control Panel (WCP)-related utilities.

Table of Contents

Installation

npm install --save @webiny/wcp

Or if you prefer yarn:

yarn add @webiny/wcp

Overview

The @webiny/wcp package contains essential Webiny Control Panel (WCP)-related utilities.

Examples

ExampleDescription
Retrieve WCP URLsShows how to retrieve WCP API and app URLs.

Reference

Functions

getWcpAppUrl

Type Declaration

export declare const getWcpAppUrl: (path?: string | undefined) => string;

Returns WCP app URL. The default URL can be overridden via the WCP_APP_URL environment variable.

import { getWcpAppUrl } from "@webiny/wcp";

console.log(getWcpAppUrl()); // Returns "https://d3mudimnmgk2a9.cloudfront.net".

getWcpApiUrl

Type Declaration

export declare const getWcpApiUrl: (path?: string | undefined) => string;

Returns WCP API URL. The default URL can be overridden via the WCP_API_URL environment variable.

import { getWcpApiUrl } from "@webiny/wcp";

console.log(getWcpApiUrl()); // Returns "https://d3mudimnmgk2a9.cloudfront.net".

getWcpGqlApiUrl

Type Declaration

export declare const getWcpGqlApiUrl: (path?: string | undefined) => string;

Returns WCP GraphQL API URL.

import { getWcpGqlApiUrl } from "@webiny/wcp";

console.log(getWcpGqlApiUrl()); // Returns "https://d3mudimnmgk2a9.cloudfront.net/graphql".

FAQs

Package last updated on 16 Sep 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