{"id":372,"date":"2025-03-13T21:02:56","date_gmt":"2025-03-13T21:02:56","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2025\/03\/13\/10771345-hostinger-horizons-how-to-export-code\/"},"modified":"2026-02-02T11:52:51","modified_gmt":"2026-02-02T11:52:51","slug":"10771345-hostinger-horizons-how-to-export-code","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/10771345-hostinger-horizons-how-to-export-code\/","title":{"rendered":"Hostinger Horizons: How to Export Code"},"content":{"rendered":"<p class=\"no-margin\">If you created a website using Hostinger Horizons, you can export the project&rsquo;s code to use it outside the builder. This means that you are able to access the backend and be able to manually make changes inside your projects &#128640;<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #feedaf80;border-color: #fbc91633\">&#9888;&#65039; <strong>Important:<\/strong> Code export is only available with an <strong>active Hostinger Horizons subscription<\/strong>. Users without a subscription will be prompted to acquire a plan when attempting to export.<\/div><h2 id=\"h_5ad98a224b\">Exporting the code<\/h2><p class=\"no-margin\">Inside your hPanel, go to <a class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites List<\/a> and open the project you wish to export:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2025\/03\/275287a5-88c1-4888-8fb9-c48060fd3359.jpg\" width=\"500\"><\/div><p class=\"no-margin\">Inside <a class=\"intercom-content-link\" target=\"_blank\">Horizons<\/a>, click on the <b>Code <\/b>tab at the top of the editor.<\/p><div class=\"intercom-container intercom-align-center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6062\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/03\/code-1.png\" alt=\"\" width=\"622\" height=\"168\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/03\/code-1.png 622w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/03\/code-1-300x81.png 300w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/div><div>You&rsquo;ll see the <b>Export code<\/b> option under the files sidebar:<br>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6063\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/03\/code-2.png\" alt=\"\" width=\"335\" height=\"132\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/03\/code-2.png 335w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2025\/03\/code-2-300x118.png 300w\" sizes=\"auto, (max-width: 335px) 100vw, 335px\" \/><\/div><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">&#128161; <b>Important: <\/b>The exported code is a <b>Node.js project<\/b> built with <b>React and Vite<\/b>. At the moment, this is the <b>only format available<\/b> for export and is the <b>default output<\/b>.<\/p>\n<\/div><p class=\"no-margin\">Click <b>Export<\/b> to start generating the code. Once the process is complete, a <b>.zip file<\/b> containing your full project will be available for download. You can save it to your <b>local device<\/b> and extract the contents to see and access the complete codebase.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">Remember that once you exports Horizons project, there is no way to import the edited version back to Horizons and continue with prompting. You will need to proceed with manual edits or start a new project.<\/p>\n<\/div><h2 id=\"h_0d4ec13483\">What can be done with the exported code<\/h2><p class=\"no-margin\">After exporting the code, you can:<\/p><ol>\n<li>\n<p class=\"no-margin\"><b>Edit it manually<\/b>: To do this, you&rsquo;ll need <b>coding knowledge<\/b> and <b>Node.js installed<\/b> on your local machine. This is necessary to run and modify the project properly, as it is based on Node.js tooling (Vite\/React).<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><strong>Deploy to Business or Cloud hosting plans<\/strong>: You can now deploy Node.js applications directly to <strong>Business Web Hosting<\/strong> or <strong>Cloud hosting plans<\/strong> (Cloud Startup, Cloud Professional, Cloud Enterprise, or Cloud Enterprise Plus) using Hostinger&rsquo;s Node.js Web Apps feature. For detailed instructions, check out our guide on <a class=\"underline underline underline-offset-2 decoration-1 decoration-current\/40 hover:decoration-current focus:decoration-current\" href=\"\/support\/how-to-deploy-a-nodejs-website-in-hostinger\/\">how to deploy a Node.js website in Hostinger<\/a>.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><strong>Import to a VPS<\/strong>: You can also upload the code to a VPS server where Node.js is available and configured. You can check more details about <a class=\"underline underline underline-offset-2 decoration-1 decoration-current\/40 hover:decoration-current focus:decoration-current\" href=\"\/support\/9553137-how-to-set-up-a-node-js-application-using-cloudpanel\">using Node.js on VPS in this guide here<\/a>.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Convert it to static files<\/b>: If you want to host the project on <b>shared or cloud hosting plans<\/b>, you must first <b>convert the code into static files<\/b> (HTML, CSS, and JS). You can do this by building the project using Vite (<code>npm run build<\/code>), which outputs static assets that can be hosted on any web server.<\/p>\n<\/li>\n<\/ol><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">&#9888;&#65039; <b>Note: <\/b>Uploading the raw exported code <b>directly to hPanel (shared or cloud hosting)<\/b> without converting it to static files <b>will not work<\/b>.<\/div><p class=\"no-margin\">To use the exported code inside hPanel, <b>you will need basic coding knowledge<\/b> to be able to make the conversion to static files.<\/p><p class=\"no-margin\">If you have the static files ready, you can import them back to your hPanel by doing the following:<\/p><ol>\n<li>\n<p class=\"no-margin\">On <a class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites List<\/a>, click on <b>Add website<\/b>:<br>\n&#8203;<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2025\/03\/538294ea-5d8a-47fd-877f-3d6b87e1f123.jpg\" width=\"500\"><\/div>\n<\/li>\n<li>\n<p class=\"no-margin\">On the dropdown menu, select <b>Empty PHP\/HTML website<\/b>:<br>\n&#8203;<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2025\/03\/ce88b81a-5c5a-47d4-bf3c-31d216280258.jpg\" width=\"500\"><\/div>\n<\/li>\n<\/ol><p class=\"no-margin\">After that, you can go to your File Manager and import the static files. For more details, you can check our guide on <a class=\"intercom-content-link\" href=\"\/support\/1869114-how-to-upload-backups-with-file-manager\" target=\"_blank\" rel=\"noopener\">how to upload backups manually<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to export your web application code, access its backend and make manual changes<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[293],"tags":[],"class_list":["post-372","post","type-post","status-publish","format-standard","hentry","category-hostinger-horizons"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/10771345-hostinger-horizons-how-to-export-code\/","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/372","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\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=372"}],"version-history":[{"count":7,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/372\/revisions"}],"predecessor-version":[{"id":7662,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/372\/revisions\/7662"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}