climatepolicyradar / policy-search

0 stars 1 forks source link

Feat 44 api url on dotenv #90

Closed eurolife closed 2 years ago

eurolife commented 2 years ago

The API URL can now be set in a .env file in the root folder of the frontend app (in the app folder). If one doesn't exist in the container, it must be created. An .env.example file should exist in the repo for reference.

FYI this is a feature built into NextJS and you can read how it works here: https://nextjs.org/docs/basic-features/environment-variables

The changes from my previous PR #89 are also in this one.

chrisaballard commented 2 years ago

I notice that this PR includes all the changes from PR #89 too? I don't think these changes should be included in this PR?