To connect a Supabase database to a Hostinger Node.js application, use the Database Connect Wizard in your Node.js website dashboard. The wizard signs in to Supabase, applies the required environment variables, and redeploys the app.
Before we start, ensure:
-
You already have a built Node.js application
-
Your database is hosted on Supabase (third-party provider)
When using a third-party database provider (like Supabase), Hostinger supports Node.js applications to connect to externally hosted databases such as:
-
PostgreSQL
-
MySQL
-
MongoDB
If you’d rather use a MySQL database hosted directly on Hostinger instead of an external provider, see connecting a Hostinger MySQL database to a Node.js application.
Steps to connect Supabase database to Node.js website
- In Hostinger dashboard, go to your Node.js application dashboard
- Under the Essentials section, find Database and click Connect

- Select Supabase and click Continue

- You will be redirected to Supabase to sign in to your account
- Once authorized, choose to either Connect an existing database or Create a new database

- If connecting to an existing database, select it from the list of your Supabase projects and click Continue

- Hostinger will automatically retrieve the required environment variables and apply them to your next deployment
Hostinger does not make any code changes to your application. Your website’s code and structure must already support the database you are connecting to. A reminder of this is also shown during the onboarding flow.
NOTE
- If you add the Supabase connection string manually instead of using the wizard, use the connection pooler string from the Supabase dashboard. The direct database host only supports IPv6 on free Supabase projects. See how to add environment variables during Node.js application deployment.
Congratulations, you’ve successfully connected your SupaBase external database to your Hostinger Node.js application.