You are using an unsupported browser. Please update your browser to the latest version on or before July 31, 2020.
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.


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


    • The ID of your project.


    • 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!
4 out of 4 found this helpful

scroll to top icon