{"id":7271,"date":"2026-01-08T11:27:56","date_gmt":"2026-01-08T11:27:56","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=7271"},"modified":"2026-08-24T06:35:47","modified_gmt":"2026-08-24T06:35:47","slug":"how-to-edit-or-add-environment-variables-after-deployment","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-edit-or-add-environment-variables-after-deployment\/","title":{"rendered":"How to edit or add environment variables after deployment"},"content":{"rendered":"<p>After deploying a Node.js application on Hostinger, you can edit existing environment variables or add new ones at any time.<\/p><h3>Before you start<\/h3><ul>\n<li>If you haven&rsquo;t deployed your Node.js application yet, see <a href=\"https:\/\/www.hostinger.com\/support\/how-to-deploy-a-nodejs-website-in-hostinger\/\">how to deploy a Node.js website in Hostinger<\/a>.<\/li>\n<li>You can also <a href=\"https:\/\/www.hostinger.com\/support\/how-to-add-environment-variables-during-node-js-application-deployment\/\">add environment variables while deploying the application<\/a> instead of adding them afterward.<\/li>\n<\/ul><h2 data-renderer-start-pos=\"874\" data-local-id=\"9f59b8fd-921a-43a4-ad11-4c5e4d4b099e\" id=\"h-edit-environment-variables\">Edit Environment variables<\/h2><ol>\n<li>\n<p data-renderer-start-pos=\"767\" data-local-id=\"653baeaa-a48c-48ff-9820-36002c831559\">Open your <strong data-renderer-mark=\"true\">Website Dashboard<\/strong>.<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"767\" data-local-id=\"653baeaa-a48c-48ff-9820-36002c831559\">Navigate to the <b>Environment variables <\/b>section.<\/p>\n<\/li>\n<li>You can add new or edit existing environment variables there.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-16777\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-24_12-02_1.png\" alt=\"\" width=\"1356\" height=\"785\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-24_12-02_1.png 1356w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-24_12-02_1-300x174.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-24_12-02_1-1024x593.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-24_12-02_1-768x445.png 768w\" sizes=\"(max-width: 1356px) 100vw, 1356px\" \/><br>\nClick <strong>Apply changes<\/strong> to save the new variables.<\/li>\n<\/ol><p>Once your environment variables are applied, your Node.js application runs with the updated configuration, ready to use the new values.<\/p><h2 id=\"when-to-update-environment-variables\" class=\"text-text-100 mt-2 -mb-1 text-base font-bold\">When to update environment variables<\/h2><p class=\"font-claude-response-body break-words whitespace-normal leading-[1.7]\">You may need to update environment variables when:<\/p><ul class=\"[li_&amp;]:mb-0 [li_&amp;]:mt-1.5 [li_&amp;]:gap-1.5 [&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc flex flex-col gap-2 pl-8 mb-3\">\n<li class=\"whitespace-normal break-words pl-2\">Adding new configuration values<\/li>\n<li class=\"whitespace-normal break-words pl-2\">Updating database credentials<\/li>\n<li class=\"whitespace-normal break-words pl-2\">Rotating API keys or secrets<\/li>\n<li class=\"whitespace-normal break-words pl-2\">Changing environment-specific settings<\/li>\n<\/ul><p>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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update or add environment variables for your Node.js application after deployment on Hostinger<\/p>\n","protected":false},"author":594,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[301],"tags":[],"class_list":["post-7271","post","type-post","status-publish","format-standard","hentry","category-node-js"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/how-to-edit-or-add-environment-variables-after-deployment","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/7271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/594"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=7271"}],"version-history":[{"count":8,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/7271\/revisions"}],"predecessor-version":[{"id":16785,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/7271\/revisions\/16785"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=7271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=7271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=7271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}