@cloudpss/env
v0.5.43
Published
Get/set urls for cloudpss from `process.env` (also `document.baseURI` or `location.href`).
Downloads
297
Readme
@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"