---
title: "Comment by Adrian JS on \"Building a streaming guide app with Next.js and Supabase\" | Hashnode"
description: "Great Project, love it! I just inspected your code and I was able to find your supabase key. You have to be careful when you&#39;re flagging your env variables"
url: "https://hashnode.com/posts/building-a-streaming-guide-app-with-nextjs-and-supabase/601d05dd1054fa16dadd71ad/comment/601e825c1054fa16dadd8be9"
---

[Discussion](https://hashnode.com/posts/building-a-streaming-guide-app-with-nextjs-and-supabase/601d05dd1054fa16dadd71ad)

Comment [Building a streaming guide app with Next.js and Supabase](https://hashnode.com/posts/building-a-streaming-guide-app-with-nextjs-and-supabase/601d05dd1054fa16dadd71ad)

[Adrian JS](https://hashnode.com/@AdrianJS)

[Feb 6, 2021](https://hashnode.com/posts/building-a-streaming-guide-app-with-nextjs-and-supabase/601d05dd1054fa16dadd71ad/comment/601e825c1054fa16dadd8be9)

Great Project, love it! I just inspected your code and I was able to find your supabase key. You have to be careful when you're flagging your env variables with public\_, just see [next.js env docs](https://nextjs.org/docs/basic-features/environment-variables)

```
By default all environment variables loaded through .env.local are only available in the Node.js environment, meaning they won't be exposed to the browser.
In order to expose a variable to the browser you have to prefix the variable with NEXT_PUBLIC_
```

Im relatively new to next.js but I think you would have to move all your critical code to the "backend" part of next.js, eg. in the api folder or in the data fetch options given [here](https://nextjs.org/docs/basic-features/data-fetching#getserversideprops-server-side-rendering) . I couldn't find any of the next.js data fetch methods like [getStaticProps](https://nextjs.org/docs/basic-features/data-fetching#getstaticprops-static-generation). With these methods you can for example cache builded files.

[Samba Ndiaye](https://hashnode.com/@juniornjay)

[Feb 6, 2021](https://hashnode.com/posts/building-a-streaming-guide-app-with-nextjs-and-supabase/601d05dd1054fa16dadd71ad/comment/601e825c1054fa16dadd8be9#reply-601e98521054fa16dadd8dd5)

Thank you [Jonas Stickel](https://hashnode.com/@AdrianJS), your feedback is gold. I'll update it ASAP.
