PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, August 19, 2022

[FIXED] Where should i place environment file in a react based client side application?

 August 19, 2022     environment-variables, firebase, reactjs     No comments   

Issue

In my react application ,i have placed environment file named ".env.local" in src folder.And i have moved the firebaseConfig object to environment file.But i am getting an error which is telling that api key is not found.So ,what should i do to solve this problem.


Solution

You should place the ".env.local" file in the root of your application with the package.json file. Don't place the file in other folder.



Answered By - Anika Labiba
Answer Checked By - Candace Johnson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing