project_travel_advisor icon indicating copy to clipboard operation
project_travel_advisor copied to clipboard

Google Places Key

Open simonhlee97 opened this issue 2 years ago • 1 comments

can we use the env variable inside the script tag (in index.html) for the Places API?

simonhlee97 avatar Apr 14 '22 14:04 simonhlee97

Hey there ! In react, you can access your env variables and utilise them by placing between % symbols.

E.g, in your index.html in the public folder, you would write

jamesxu1996 avatar Jul 30 '22 19:07 jamesxu1996