Skip to content

LucasMallmann/base-path-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

📦 Util function to get basePath env variable

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages