# Where do I put my Supabase keys and other environment variables?

For a site that's built on GitHub (Vite, React, Astro, Next.js…), keep the settings it reads while it builds in Keys & variables: for one site, or for all your sites. Furge keeps each value encrypted and gives it only to that site's builds, never into your repository. Names starting with NEXT_PUBLIC_, VITE_ or PUBLIC_ are built into the website, so anyone can read them: use the anon (publishable) key there, never Supabase's service role key, which Furge refuses under such a name. Any other name is a secret: Furge hides it in the build's log, never shows it again, and doesn't publish a website whose files contain it. As with GitHub's own secrets, anyone who can push to the site's branch can change its build and read them, so keep secrets only for repositories whose pushers you trust. After a change, build the site again.

1. Importing a project: Import from GitHub lists the names its .env.example gives. Fill them in (or paste your .env file) before you press Publish from GitHub.
2. A build that failed for a missing setting: press Add and its name on the failure, fill it in, and press Save and build again.
3. Any time: open Settings → Keys & variables, or the site's GitHub settings in the studio (Keys & variables, then Build and deploy now).

Open in Furge: [Open Keys & variables](https://furge.app/settings#keys)

Also asked as: environment variables; env variables; env vars; where do i put my supabase key; supabase url and anon key; my .env file; add api key for my build; vite_ variables; next_public variables; build needs a key; secrets for my build; service role key; my build says url and key are required; invalid environment variables; missing environment variable

Page: https://furge.app/docs/build-keys

## Related

- [My Next.js app runs on a server. How do I put it online?](https://furge.app/docs/host-on-vercel.md): Furge publishes websites as files, so it can't run an app with parts that run on a server, like a Next.js app with middleware or server routes.
- [Where are my projects?](https://furge.app/docs/projects.md): Every project is on Home under Projects, with your most recent ones in the sidebar.
- [Can I install Furge on my computer or phone?](https://furge.app/docs/install.md): Yes.
- [What is Furge?](https://furge.app/docs/what-is-furge.md): Furge builds websites and apps.

From Furge's docs: Getting started. Every answer, with a link: https://furge.app/llms.txt. All of them in one file: https://furge.app/llms-full.txt.
