Socket
Socket
Sign inDemoInstall

@webiny/wcp

Package Overview
Dependencies
Maintainers
1
Versions
273
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.


Version published
Maintainers
1
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 19 Aug 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc