1.0.4 • Published 4 years ago
base-path-env v1.0.4
Util function to get the basePath env variable.
How to use it?
npm i base-path-env
const { 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/