Most of the time goes into creating free accounts. If you already have GitHub, Supabase and Vercel accounts, it takes about 5 minutes.
You use three free websites: Supabase (stores your content), GitHub (keeps your copy of Folio) and Vercel (puts your site online). Keep a notepad open to copy a few values between them.
A key is a long password-like text that lets two services talk to each other. A repository is an online folder that holds your website's files.
1. Make your own private copy on GitHub (1 minute)
Create free accounts at github.com, supabase.com and vercel.com. On Vercel choose Continue with GitHub.
Pick one:
- If you were given a template link: open it and click Use this template > Create a new repository. Name it
my-websiteand choose Private. - If you downloaded the zip: install GitHub Desktop, sign in, click File > Add local repository, choose the unzipped
folio-starterfolder (say yes to "create a repository"), click Commit to main, then Publish repository. Tick "Keep this code private". Your license does not allow a public copy.
Write down your repository address, for example https://github.com/YOUR-GITHUB-NAME/my-website.
2. Create your database (1 minute)
- In Supabase click New project. Choose a name, a database password (write it down) and the region closest to your visitors. Wait about two minutes.
- Click Connect at the top, then Connection string, then choose Transaction pooler. Copy the link and replace
[YOUR-PASSWORD]with your database password. This is yourSUPABASE_DB_URL. It lets Folio set up and update the database for you. - Open Project Settings > API Keys and copy the project URL, the Publishable key and the Secret key (on the Legacy tab:
anonandservice_role).
3. Put your site online (2 minutes)
Make this link yours: replace YOUR-GITHUB-NAME and my-website with your own, then open it.
https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FYOUR-GITHUB-NAME%2Fmy-website&env=NEXT_PUBLIC_SUPABASE_URL,NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY,SUPABASE_SERVICE_ROLE_KEY,SUPABASE_DB_URL,CRON_SECRET,SETUP_TOKEN,ENCRYPTION_KEY&envDescription=Keys%20from%20Supabase%20plus%20three%20secrets%20you%20make%20up&envLink=https%3A%2F%2Fgithub.com%2FYOUR-GITHUB-NAME%2Fmy-website%2Fblob%2Fmain%2Fdocs%2Ffolio%2FINSTALL.md&project-name=folio
(The button above only works after you replace the two names in its link, so use the link in the box.)
The link does not work? On vercel.com click Add New... > Project, find my-website and click Import. Then add the values below under Environment Variables.
Fill in the form:
| Name | What to type |
|---|---|
NEXT_PUBLIC_SUPABASE_URL | Project URL from step 2 |
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY | Publishable key from step 2 |
SUPABASE_SERVICE_ROLE_KEY | Secret key from step 2. Private. Never share it. |
SUPABASE_DB_URL | The connection string from step 2 |
SETUP_TOKEN | Make up a password of 24 or more characters. It lets only you create the owner account. |
CRON_SECRET | Make up another password of 16 or more characters |
ENCRYPTION_KEY | Make up a third password of 16 or more characters. It locks the API keys you save in the admin. Keep a copy: if you lose it, saved keys must be entered again. |
Click Deploy and wait about two minutes. Prefer fewer copy-and-paste steps? In Vercel open Storage / Integrations, add the Supabase integration and connect your project: it fills in the first three values for you.
4. Finish setup (1 minute)
- Open
/setupon your new site (for examplehttps://my-website.vercel.app/setup). - Under Set up the database, type your
SETUP_TOKENand click Set up my database. Wait for the green message and reload. - Under Create the owner account, type your
SETUP_TOKEN, your email and a password of 12 or more characters. - Sign in at
/admin/login.
No SUPABASE_DB_URL? Step 2 shows a manual way instead: click the link to the SQL Editor, paste supabase/folio.sql and click Run.
5. Tidy up
- In Supabase open Authentication > Sign In / Providers > Email and switch Allow new users to sign up off.
- In Vercel open Settings > Environment Variables, delete
SETUP_TOKEN, and redeploy. - Optional: on
/setupclick Load sample content to see how everything looks. - In the admin open Content to replace the sample name, photo and links, and Pages to fill in the legal pages (replace the text in square brackets).
Later, when you install a new version, open Settings > Database updates and click Update the database. See UPGRADING.md.
Optional extras
Email (so your contact form and newsletters can send)
- Create a free account at resend.com and click API Keys > Create API Key. Copy it.
- In Vercel add
RESEND_API_KEYwith that key, andCONTACT_TOwith the address that should receive messages. - To send from your own address, add your domain in Resend under Domains, then add
CONTACT_FROMsuch asYour Name <hello@yourdomain.com>. Until then, Resend only delivers to the email you signed up with. - Redeploy.
Your site address
Set NEXT_PUBLIC_SITE_URL to your address (for example https://my-website.vercel.app). It is used in links inside emails. Redeploy after changing it.
Your own domain
- Buy a domain from any registrar.
- In Vercel open Settings > Domains, add it and follow the two steps Vercel shows.
- Change
NEXT_PUBLIC_SITE_URLtohttps://yourdomain.comand redeploy. - Optional: add
CANONICAL_HOST=yourdomain.comandREDIRECT_HOSTS=www.yourdomain.com,my-website.vercel.appto send the old addresses to the new one.
Keep the free database awake
Free Supabase projects pause after a week with no visitors. Folio pings itself daily from Vercel. For a second safety net, in your GitHub repository open Settings > Secrets and variables > Actions > Variables, add SITE_URL with your address (no slash at the end).
Faster pages
In Vercel open Settings > Functions and set Function Region to the one closest to your Supabase region.
If something goes wrong
/setupshows a red line. Read it: it names the missing value or table.- "Invalid key". You copied the wrong key or added a space. Copy the Secret / service_role key again.
- "The database refused the sign-in". The password in
SUPABASE_DB_URLis wrong. Reset it in Supabase under Project Settings > Database, update the link, and redeploy. - "Could not reach the database". Use the Transaction pooler string, and check the project is not paused.
- The update files are missing. Use the manual method: copy
supabase/folio.sqlinto the SQL Editor. - Changed a value but nothing happened. In Vercel open Deployments, the three dots on the latest one, Redeploy.
- Still stuck? Email the seller with a screenshot of
/setup. It never shows secrets.