
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
@webiny/wcp
Advanced tools
@webiny/wcp
A set of Webiny Control Panel (WCP)-related utilities.
npm install --save @webiny/wcp
Or if you prefer yarn:
yarn add @webiny/wcp
The @webiny/wcp
package contains essential Webiny Control Panel (WCP)-related utilities.
Example | Description |
---|---|
Retrieve WCP URLs | Shows how to retrieve WCP API and app URLs. |
getWcpAppUrl
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
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
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
A set of Webiny Control Panel (WCP)-related utilities.
We found that @webiny/wcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.