Subhajit685 / foodie

Food order website using MERN stack.
0 stars 1 forks source link

Make sure you ... #1

Open AaronGulman opened 6 days ago

AaronGulman commented 6 days ago

Hi,

I recommend removing the .env file from your GitHub repository for the following reasons:

  1. Security Risks: Sensitive data in.envfiles might be accidentally exposed if not handled carefully.
  2. Environment Management: They don’t scale well for managing multiple environments (e.g., staging vs. production).
  3. Lack of Version Control: Changes to .envfiles aren’t tracked with the codebase, leading to inconsistencies.
  4. Limited Flexibility: .env files are best for simple configurations; complex setups may require more robust solutions.

Run git rm --cached .env to remove it from the repository. Add .env to .gitignore to prevent future commits.

Good luck !

Subhajit685 commented 6 days ago

cookie not set in browser. what i do?