Skip to content

Commit

Permalink
fix: use default port and paths
Browse files Browse the repository at this point in the history
  • Loading branch information
niccofyren committed Sep 22, 2024
1 parent e477ef4 commit 7166c66
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ For basic installation of backend repo see [backend repo](https://github.com/gat
Same procedure as above, but with a few extra steps:
1. Make sure local backend is running and available on a local port
2. Create a `.env.development.local` file in the root of the project (not `.env.local` due to how Astro prioritizes env files)
3. Add the following line to the file: `API_URL=http://localhost:3000` (make sure the port matches the port of your local backend)
3. Add the following line to the file: `API_URL=http://localhost:8000` (make sure the port matches the port of your local backend)

## Common issues

Expand All @@ -30,6 +30,7 @@ Same procedure as above, but with a few extra steps:

### No content is loading when using local backend

* Make sure the backend is running and available on the correct port (try opening `API_URL` in browser)
* Make sure the backend is running and available on the correct port (try opening `API_URL` + `/api/v2/news/` in browser)
* If backend is running in docker, make sure the port is exposed in the docker-compose file
* Check that backend data has been properly seeded. On first startup it might be in a broken state until initiall setup steps have been done. See backend repo for details

0 comments on commit 7166c66

Please sign in to comment.