-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
Using the graphql endpoint as the default API endpoint will cause the Image component to use the wrong url and return 404 for all images because this component calls the REST /image endpoint.
BASTA-tfwa/.github/workflows/main.yml
Line 47 in fa66e5f
| REACT_APP_API_URL: https://api.dev.tenantfile.org/graphql |
Remedies (not necessarily mutually exclusive):
- Drop graphql from env URL and add it to gql query URLs
- Fetch images from the client - Currently, image names are fetched via gql from the server, then the client is passing the names to the server again to the REST endpoint where the server accesses Google Cloud Storage then passes the image to the client. Fetching the images directly on the client seems like a much simpler solution.