Add environment variables & add .env to gitignore
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
API_URL=http://localhost:1337
|
||||||
|
NEXT_PUBLIC_API_URL=$API_URL
|
||||||
@@ -25,6 +25,7 @@ yarn-debug.log*
|
|||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
|
||||||
# local env files
|
# local env files
|
||||||
|
.env
|
||||||
.env.local
|
.env.local
|
||||||
.env.development.local
|
.env.development.local
|
||||||
.env.test.local
|
.env.test.local
|
||||||
|
|||||||
Reference in New Issue
Block a user