Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  VPS FAQ  >  Connecting a Supabase database to a MilesWeb Node.js application
Top Scroll

Connecting a Supabase database to a MilesWeb Node.js application

 2 min

MilesWeb builds the connection between a Node.js application and a Supabase database directly. So there’s nothing to edit in your code or configure manually for connection strings. The integration runs through cPanel itself. Here’s precisely how the process works.

Before you begin, confirm the following:

  • A working Node.js application is already deployed.
  • The database is hosted on Supabase, a third-party provider.

MilesWeb allows Node.js applications to connect with externally hosted databases from providers like Supabase, covering:

Steps to Connect a Supabase Database to a Node.js Website

  1. Open cPanel and navigate to your Node.js application dashboard.
  2. Locate the Database option under the Essentials section, then select Connect
  3. Choose Supabase from the list of providers and click Continue.
  4. MilesWeb will redirect you to Supabase, where you’ll need to sign in to your account.
  5. Once your account is authorised, decide whether to Connect an existing database or Create a new database.
  6. For an existing database, pick the relevant project from your Supabase list and confirm by clicking Continue.
  7. MilesWeb pulls the necessary environment variables automatically and applies them the next time your app is deployed.

Note: MilesWeb does not make any code changes to your application. The connection depends on your website’s code and structure already being built to use that database.

Congratulations. You have successfully connected your Supabase external database to your MilesWeb Node.js application.

Once the connection goes live, MilesWeb takes care of credential retrieval, environment variable setup, and deployment syncing on its own — none of that needs manual attention. Tables, access policies, and queries still live in Supabase’s dashboard, since that’s where actual database management happens. By hosting the application and keeping those environment variables current, MilesWeb keeps the two platforms working together without extra effort on your part. 

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
30
MINS
59
SECS
Claim the discount before it’s too late. Use the coupon code:
STORYSAVER
Note: Copy the coupon code and apply it on checkout.