{"id":20967,"date":"2026-10-19T02:54:18","date_gmt":"2026-10-19T02:54:18","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=20967"},"modified":"2026-10-19T02:54:18","modified_gmt":"2026-10-19T02:54:18","slug":"how-to-use-pull-request-previews-for-node-js-websites-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-use-pull-request-previews-for-node-js-websites-in-hostinger\/","title":{"rendered":"How to use pull request previews for Node.js websites in Hostinger"},"content":{"rendered":"<p>Node.js pull request previews in Hostinger give you a temporary link to test each pull request before you merge it. When you open a pull request in the GitHub repository connected to your Node.js website, Hostinger builds that version separately from your live website. Hostinger then posts the preview link as a comment in the pull request. The preview and its link are removed when the pull request is merged or closed.<\/p><h3><b>Before you start<\/b><\/h3><ul>\n<li>Your Node.js website must be deployed from a GitHub repository. Pull request previews don&rsquo;t apply to websites deployed by uploading files.<\/li>\n<li>Pull request previews are currently available for websites hosted in the Mumbai and Germany data centers.&nbsp; See <a data-click-id=\"hgr-post-content-link-how-to-transfer-your-hosting-plan-to-a-different-server-in-h\" href=\"https:\/\/www.hostinger.com\/support\/5577027-how-to-transfer-your-hosting-plan-to-a-different-server-in-hostinger\/\">How to transfer your hosting plan to a different server in Hostinger<\/a> to check where your server is located.<\/li>\n<\/ul><h2 id=\"h-how-pull-request-previews-work-for-node-js-websites\">How pull request previews work for Node.js websites<\/h2><p>Hostinger creates a pull request preview automatically, with no setup needed in your repository:<\/p><ol>\n<li>Open a pull request in the GitHub repository connected to your Node.js website.<\/li>\n<li>Hostinger builds that version of your website in a separate folder next to your live website. Your live website is not changed.<\/li>\n<li>When the build is ready, the <b>hostinger<\/b> bot comments on the pull request with the commit the preview was built from and a temporary <code>hostingersite.com<\/code> link.<\/li>\n<li>Open the link to review your changes before you merge.<\/li>\n<\/ol><p><img decoding=\"async\" class=\"alignnone size-full wp-image-20968\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-19_09-53.png\" alt=\"\" width=\"941\" height=\"915\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-19_09-53.png 941w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-19_09-53-300x292.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-19_09-53-768x747.png 768w\" sizes=\"(max-width: 941px) 100vw, 941px\" \/><\/p><p>The pull request preview and its link are removed when the pull request is merged or closed.<\/p><p>With pull request previews, you can check every change on a working copy of your Node.js website while your live website stays untouched.<\/p><p>Learn more about connecting a repository in <a data-click-id=\"hgr-post-content-link-how-to-add-a-node-js-web-app-in-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/how-to-deploy-a-nodejs-website-in-hostinger\/\">How to add a Node.js web app in Hostinger<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Get a temporary preview link for every GitHub pull request on your Node.js website.<\/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-20967","post","type-post","status-publish","format-standard","hentry","category-node-js"],"hreflangs":[],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/20967","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=20967"}],"version-history":[{"count":2,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/20967\/revisions"}],"predecessor-version":[{"id":20970,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/20967\/revisions\/20970"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=20967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=20967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=20967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}