@cloudpss/env
TypeScript icon, indicating that this package has built-in type declarations

0.5.30 • Public • Published

@cloudpss/env

Get/set urls for cloudpss from process.env (also document.baseURI or location.href).

All urls WILL NOT ends with '/', even if you set them with trailing '/'.

  • HOME_URL: process.env.CLOUDPSS_HOME_URL Home page url of cloudpss, defaults to "https://cloudpss.net".
  • GQL_URL: process.env.CLOUDPSS_GQL_URL GraphQL API endpoint of cloudpss, defaults to "https://cloudpss.net/graphql".
  • API_URL: process.env.CLOUDPSS_API_URL Common API endpoint of cloudpss, defaults to "https://cloudpss.net/api"

Readme

Keywords

none

Package Sidebar

Install

npm i @cloudpss/env

Weekly Downloads

70

Version

0.5.30

License

MIT

Unpacked Size

9.8 kB

Total Files

7

Last publish

Collaborators

  • opportunity