base-path-env
v1.0.4
Published
Util function to get the basePath env variable.
Readme
Util function to get the basePath env variable.
How to use it?
npm i base-path-envconst { getBasePath } = require("base-path-env");
const basePath = getBasePath();Environment variable
In order for this to work, you need to specify in your .env file the BASE_PATH variable, or you can just export the env variable. Eg.:
BASE_PATH=subdomain/