How to edit or add environment variables after deployment

Update or add environment variables for your Node.js application after deployment on Hostinger

Updated 1 week ago

After deploying a Node.js application on Hostinger, you can edit existing environment variables or add new ones at any time.

Before you start

Edit Environment variables

  1. Open your Website Dashboard.

  2. Navigate to the Environment variables section.

  3. You can add new or edit existing environment variables there.

    Click Apply changes to save the new variables.

Once your environment variables are applied, your Node.js application runs with the updated configuration, ready to use the new values.

When to update environment variables

You may need to update environment variables when:

  • Adding new configuration values
  • Updating database credentials
  • Rotating API keys or secrets
  • Changing environment-specific settings

Keeping your environment variables up to date ensures your Node.js application always runs with accurate, secure configuration, without needing to redeploy the entire project.