You are using an unsupported browser. Please update your browser to the latest version on or before July 31, 2020.
close
Home > Project Editor > What environment variables are available in a project?
What environment variables are available in a project? print icon

Aside from those you specify yourself in the .env file in your project, the following environment variables are available to all projects:

 

  • PORT
    • The port your project uses, which defaults to port 3000.

 

  • PROJECT_DOMAIN
    • Contains your project’s name, useful for programmatically specifying your project’s URL.

 

  • PROJECT_ID
    • The ID of your project.

 

  • PROJECT_INVITE_TOKEN
    • Useful if you want to invite people to edit your project.
Got more questions?  Check out our Community Forum

Open 24/7, the forum is where Glitch makers help each other and show off all the rad apps that they have created.  It's the friendliest community of coders on the Web!


 
Feedback
1 out of 1 found this helpful

scroll to top icon