How to self-host Feedbase on Vercel
You’ll need a Supabase account to get started. Sign up if you don’t have one already.
Once you’ve signed up, create a new project. You can do this by clicking on the “New Project” button or by following this link.
Once you’ve created a new project, you’ll need to migrate your database. You can do this the following ways:
Using Supafork (Recommended)
Click here and follow the instructions to fork the Feedbase repository and migrate your database automatically.
Using the Supabase CLI
For this method, you’ll need to install the Supabase CLI. View the installation instructions here.
Clone the Feedbase repository
Login to Supabase
Link your project
You can find your project ID in the URL of your Supabase project dashboard or via runnning supabase projects list
.
Run the migrations
If everything went successful, you should be able to see a populated database in your Supabase dashboard.
Manually using the SQL Editor
Go to your Project's SQL Editor
Click on the SQL tab in your project dashboard or follow this link.
Run the migrations
Copy and paste all the contents of each file in the supabase/migrations
folder of the Feedbase repository into the SQL editor and run them.
Verify the migrations
If everything went successful, you should be able to see a populated database in your Supabase dashboard.
Once you’ve migrated your database, head over to the Url Configuration settings and add the following site and redirect URLs:
Site URL: https://<your-domain>.com
Redirect URLs: https://**.<your-domain>.com/**
Once you’ve migrated your database, you’ll need to prepare all necessary environment variables for the next step.
You can find a list of all environment variables and where to find them here.
https://your-domain.com
).If you’re planning hosting Feedbase on a subdomain, meaning your Feedbase instance (admin dashboard) will be accessible at https://<subdomain>.your-domain.com
, you’ll need to set the following environment variables:
SUBDOMAIN_HOSTING
: Set this to true
DASHBOARD_SUBDOMAIN
: Set this to the subdomain the Feedbase dashboard (NOT the public hubs, those have to be handled via custom domains in the dashboard) will be hosted on (e.g. feedbase
)CUSTOM_DOMAIN_WHITELIST
: A comma separated list of custom domains with the same root domain as the one you are hosting on. This is used to whitelist custom domains for the public hubs. For example, if you are hosting on feedbase.your-domain.com
, you can add feedback.your-domain.com
and feedback2.your-domain.com
to the list and then assign them to you’re project in the Feedbase dashboard.Finally, you can deploy your Feedbase instance to Vercel by following the instructions here.
If you run into any issues, feel free to reach out to us on Discord or open an issue on the Feedbase repository.
Error: No Output Directory named "public" found after the Build completed
This error occurs due to the monorepo structure of the Feedbase repository. To fix this, head over to your Project Settings > General and set the “Root Directory” to apps/web
.
404: NOT_FOUND
Vercel errorThis usually occurs when the Build and Deployment settinsg are misconfigured. To fix this, head over to your Project Settings > General and select the “Framework Preset” to “Next.js”.
This is often due to misconfigured subdomain environment variables. Please refer to the Prepare your environment variables section and ensure that all necessary environment variables are set correctly.
How to self-host Feedbase on Vercel
You’ll need a Supabase account to get started. Sign up if you don’t have one already.
Once you’ve signed up, create a new project. You can do this by clicking on the “New Project” button or by following this link.
Once you’ve created a new project, you’ll need to migrate your database. You can do this the following ways:
Using Supafork (Recommended)
Click here and follow the instructions to fork the Feedbase repository and migrate your database automatically.
Using the Supabase CLI
For this method, you’ll need to install the Supabase CLI. View the installation instructions here.
Clone the Feedbase repository
Login to Supabase
Link your project
You can find your project ID in the URL of your Supabase project dashboard or via runnning supabase projects list
.
Run the migrations
If everything went successful, you should be able to see a populated database in your Supabase dashboard.
Manually using the SQL Editor
Go to your Project's SQL Editor
Click on the SQL tab in your project dashboard or follow this link.
Run the migrations
Copy and paste all the contents of each file in the supabase/migrations
folder of the Feedbase repository into the SQL editor and run them.
Verify the migrations
If everything went successful, you should be able to see a populated database in your Supabase dashboard.
Once you’ve migrated your database, head over to the Url Configuration settings and add the following site and redirect URLs:
Site URL: https://<your-domain>.com
Redirect URLs: https://**.<your-domain>.com/**
Once you’ve migrated your database, you’ll need to prepare all necessary environment variables for the next step.
You can find a list of all environment variables and where to find them here.
https://your-domain.com
).If you’re planning hosting Feedbase on a subdomain, meaning your Feedbase instance (admin dashboard) will be accessible at https://<subdomain>.your-domain.com
, you’ll need to set the following environment variables:
SUBDOMAIN_HOSTING
: Set this to true
DASHBOARD_SUBDOMAIN
: Set this to the subdomain the Feedbase dashboard (NOT the public hubs, those have to be handled via custom domains in the dashboard) will be hosted on (e.g. feedbase
)CUSTOM_DOMAIN_WHITELIST
: A comma separated list of custom domains with the same root domain as the one you are hosting on. This is used to whitelist custom domains for the public hubs. For example, if you are hosting on feedbase.your-domain.com
, you can add feedback.your-domain.com
and feedback2.your-domain.com
to the list and then assign them to you’re project in the Feedbase dashboard.Finally, you can deploy your Feedbase instance to Vercel by following the instructions here.
If you run into any issues, feel free to reach out to us on Discord or open an issue on the Feedbase repository.
Error: No Output Directory named "public" found after the Build completed
This error occurs due to the monorepo structure of the Feedbase repository. To fix this, head over to your Project Settings > General and set the “Root Directory” to apps/web
.
404: NOT_FOUND
Vercel errorThis usually occurs when the Build and Deployment settinsg are misconfigured. To fix this, head over to your Project Settings > General and select the “Framework Preset” to “Next.js”.
This is often due to misconfigured subdomain environment variables. Please refer to the Prepare your environment variables section and ensure that all necessary environment variables are set correctly.