Комментарии:
Thanks for the explanation. I think I understand now. In terms of I thought this did something, it doesn't.
So when you port your code to production - you must also port your .env as well.
Only I ported my code to a server and one day noticed the server owner was looking at my source files.
This isn't going to stop them reading the sensitive details from the .env file, is it.
I just need to pick a better server provider.
First of all that is a great video, secondly dude you don't use mouse I want to get to that point
ОтветитьWhen i push my code to github without .env file and then i decide to host it using render, since there is no .env file how will code get my api key
ОтветитьThank you! Quick and on point
ОтветитьThis is my 3rd video on env files and I do not know how will another person use my project after cloning from github if i have ignored the .env??? will he need to manually look for each and every variable manually???
Ответитьсупер тутор! дякую
ОтветитьHow would this work with front-end code? Wouldn't all of our API KEYS get exposed in the browser anyway once they are loaded from the .env file?
ОтветитьHi there. So I'm sure that you know in angular we have the environment.ts file which is where I store the API keys (as I was taught). Today I was checking something in the network tabs in chrome and to my amazement, I saw the API key under one of the API calls. Can you explain why this is the case or how to prevent it? Thanks!
Ответитьi arrived here too late...lol, time to generate another API key and get secured. Thanks for the info! - subbed.
ОтветитьHi! Thanks for the great Content. What if we want to do a post request with the data received from the user? How do i pass the data from user side to the proxy port(backend)?
ОтветитьGreat video as always! So as I understood, we should never ever write sensitive information on the frontend side, including frontend code of the mobile app as well, right?
ОтветитьA good idea I read about was to create a .env.example file. It is a copy of the .env but without the values.
So, for example, you will have API_KEY=add your api key here.
The developer then uses this as the template for their own .env adding in their own settings.
Always very good
ОтветитьNice video!! can you do a video about environments in Angular? <3
Ответить