awesome. I used to create auth with supabase. This video shows a new way to authenticate in an easier method. Thanks. I wish next video could be showed stream application such as chatGPT-like app based on solidstart. What's more, use case of deno deploy KV in solidjs is another course that I am looking forward to learning. thanks again.
Thank you very much for this video, very informative. I was looking at the code in `lib/authOptions` and in in some places you use `process.env` and in others you use `import.meta.env`. Is there any difference between the two? Do you use `process.env` for server side and `import.meta.env` for client side?
Yes. Because of how the bundle is split between server-side code and client-side code. in a nutshell `import.meta.env` is client-side, and `process.env` is server-side. So if a variable doesn't have VITE_ it will never be exposed to client and you can't see it with `import.meta.env` here's the link to the docs: docs.solidjs.com/configuration/environment-variables
Thank you Atila!!!
awesome. I used to create auth with supabase. This video shows a new way to authenticate in an easier method. Thanks. I wish next video could be showed stream application such as chatGPT-like app based on solidstart. What's more, use case of deno deploy KV in solidjs is another course that I am looking forward to learning.
thanks again.
Hey! Thanks for the video! Which icon pack are you using in your VSCode? It looks amazing!
Thank you very much for this video, very informative. I was looking at the code in `lib/authOptions` and in in some places you use `process.env` and in others you use `import.meta.env`. Is there any difference between the two? Do you use `process.env` for server side and `import.meta.env` for client side?
Yes. Because of how the bundle is split between server-side code and client-side code.
in a nutshell `import.meta.env` is client-side, and `process.env` is server-side.
So if a variable doesn't have VITE_ it will never be exposed to client and you can't see it with `import.meta.env`
here's the link to the docs: docs.solidjs.com/configuration/environment-variables