Join our community

Get access to the complete guide to developing and deploying fast, production-ready Nuxt apps.

4-5 Adding Environment Variables

We’re mostly done with setting up Supabase, but we still have to set up our environment variables.

Environment variables are important in any app for two main reasons:

  1. Not storing sensitive data in our git repo
  2. Separating configuration from code

Adding environment variables to our local dev environment is pretty easy. And luckily for us, the awesome Netlify CLI tool makes it a breeze to instantly add them to our production environment as well!

Netlify CLI: https://docs.netlify.com/cli/get-started/ Nuxt Supabase module: https://supabase.nuxtjs.org/get-started

This course was originally built with Nuxt 3, but it's no longer being maintained. You can still follow the lessons, but make sure to use the exact dependency versions listed in the course repository to avoid breaking changes.

If you’re looking for the most up-to-date and fully supported version, we recommend Mastering Nuxt: Full Stack Unleashed , which uses Nuxt 4 and actively being maintained.