{"id":7715,"date":"2026-02-04T03:37:41","date_gmt":"2026-02-04T03:37:41","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=7715"},"modified":"2026-09-01T04:06:39","modified_gmt":"2026-09-01T04:06:39","slug":"connecting-a-supabase-database-to-a-hostinger-node-js-application","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/connecting-a-supabase-database-to-a-hostinger-node-js-application\/","title":{"rendered":"Connecting a Supabase database to a Hostinger Node.js application"},"content":{"rendered":"<p>This guide explains how to connect a <strong>Supabase<\/strong> project to a Node.js application hosted on Hostinger.<\/p><p>Before we start, ensure:<\/p><ul class=\"ak-ul\" data-local-id=\"4eb6091a-218f-46e7-9c65-8ffe18ff0c68\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"238\" data-local-id=\"13e5157262fe\">You already have a <a href=\"https:\/\/www.hostinger.com\/support\/how-to-deploy-a-nodejs-website-in-hostinger\/\"><strong data-renderer-mark=\"true\">built Node.js application<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"286\" data-local-id=\"a070cead7e29\">Your database is hosted on <strong data-renderer-mark=\"true\">Supabase (third-party provider)<\/strong><\/p>\n<\/li>\n<\/ul><p data-renderer-start-pos=\"350\" data-local-id=\"fcb951bd848b\">When using a third-party database provider (like Supabase), Hostinger supports Node.js applications to connect to externally hosted databases such as:<\/p><ul class=\"ak-ul\" data-local-id=\"590bfd9f-e609-46d5-b07b-b9f4f7a6f680\" data-indent-level=\"1\">\n<li>\n<p data-renderer-start-pos=\"504\" data-local-id=\"e944b78b564d\">PostgreSQL<\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"519\" data-local-id=\"d199f4363a9a\"><span data-highlighted=\"true\" data-vc=\"highlighted-text\"><span class=\"_kqswh2mm\"><span class=\"_5pioz8co _189e1dm9 _1il9buyh _19lc184f _d0altlke\" data-testid=\"definition-highlighter\">MySQL<\/span><\/span><\/span><\/p>\n<\/li>\n<li>\n<p data-renderer-start-pos=\"528\" data-local-id=\"c29158e2d780\">MongoDB<\/p>\n<\/li>\n<\/ul><p>If you&rsquo;d rather use a MySQL database hosted directly on Hostinger instead of an external provider, see <a href=\"https:\/\/www.hostinger.com\/support\/connecting-a-hostinger-mysql-database-to-a-node-js-application\/\">connecting a Hostinger MySQL database to a Node.js application.<\/a><\/p><h2 id=\"h-steps-to-connect-supabase-database-to-node-js-website\">Steps to connect Supabase database to Node.js website<\/h2><ol>\n<li>In <a href=\"https:\/\/www.hostinger.com\/support\/1583518-how-to-access-the-dashboard-in-hostinger\/\">hPanel<\/a>, go to your Node.js application dashboard<\/li>\n<li>Under the <strong>Essentials<\/strong> section, find <strong>Database<\/strong> and click <strong>Connect<\/strong><br>\n<img decoding=\"async\" class=\"alignnone wp-image-11696 size-full\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-38_1-e1781753978844.png\" alt=\"\" width=\"1224\" height=\"765\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-38_1-e1781753978844.png 1224w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-38_1-e1781753978844-300x188.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-38_1-e1781753978844-1024x640.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-38_1-e1781753978844-768x480.png 768w\" sizes=\"(max-width: 1224px) 100vw, 1224px\" \/><\/li>\n<li>Select <strong>Supabase<\/strong> and click <strong>Continue<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-11695\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-38.png\" alt=\"\" width=\"1189\" height=\"846\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-38.png 1189w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-38-300x213.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-38-1024x729.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-38-768x546.png 768w\" sizes=\"(max-width: 1189px) 100vw, 1189px\" \/><br>\n<\/strong><\/li>\n<li>You will be redirected to <strong>Supabase<\/strong> to sign in to your account<\/li>\n<li>Once authorized, choose to either <strong>Connect an existing database<\/strong> or <strong>Create a new database<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-11693\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-26.png\" alt=\"\" width=\"1204\" height=\"911\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-26.png 1204w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-26-300x227.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-26-1024x775.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-26-768x581.png 768w\" sizes=\"(max-width: 1204px) 100vw, 1204px\" \/><br>\n<\/strong><\/li>\n<li>If connecting to an existing database, select it from the list of your Supabase projects and click <strong>Continue<\/strong><br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-11694\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-26_1.png\" alt=\"\" width=\"1162\" height=\"909\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-26_1.png 1162w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-26_1-300x235.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-26_1-1024x801.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/06\/2026-06-18_10-26_1-768x601.png 768w\" sizes=\"(max-width: 1162px) 100vw, 1162px\" \/><\/li>\n<li>Hostinger will automatically retrieve the required environment variables and apply them to your next deployment<\/li>\n<\/ol><p>&nbsp;<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">Hostinger does not make any code changes to your application. Your website&rsquo;s code and structure must already support the database you are connecting to. A reminder of this is also shown during the onboarding flow.<\/div><p data-renderer-start-pos=\"2919\" data-local-id=\"643fd826678e\">Congratulations, you&rsquo;ve successfully connected your SupaBase external database to your Hostinger Node.js application.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Connecting a Node.js application to a Supabase PostgreSQL database 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-7715","post","type-post","status-publish","format-standard","hentry","category-node-js"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/connecting-a-supabase-database-to-a-hostinger-node-js-application","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/7715","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=7715"}],"version-history":[{"count":10,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/7715\/revisions"}],"predecessor-version":[{"id":17659,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/7715\/revisions\/17659"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=7715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=7715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=7715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}