Davin Chia (Airbyte)
localhost:8000/connections
my browser navigates me to the connections
tab. How does this work? I'm asking because we are hoping to serve up the webapp (index.html) via CDN for cloud and I want to make sure the routing behaviour is correctDavin Chia (Airbyte)
/api
in the path, should be redirected to index.html?Liren Tu
when I navigate toThis is done by react router: https://github.com/airbytehq/airbyte/blob/master/airbyte-webapp/src/pages/routes.tsx#L124 Not sure this answers your question though, and how it relates to CDN.my browser navigates me to thelocalhost:8000/connections
tab. How does this work?connections
Davin Chia (Airbyte)
Artem Astapenko
07/16/2021, 11:01 AMDavin Chia (Airbyte)
/api
routes as well?Davin Chia (Airbyte)
API_URL=/api/v1/
INTERNAL_API_HOST=airbyte-server:8001
Thinking through how to keep this consistent. Will we need a separate api url then? e.g. if the main app is at <http://dev-cloud.airbyte.io|dev-cloud.airbyte.io>
, we'll need <http://dev-cloud-api.airbyte.io|dev-cloud-api.airbyte.io>
as the api endpoint so the webapp knows to redirect all <http://dev-cloud.airbyte.io/api/v0|dev-cloud.airbyte.io/api/v0>
to <http://dev-cloud-api.airbyte.io|dev-cloud-api.airbyte.io>
. Or is using the same url and redirecting all requests to <http://dev-cloud.airbyte.io|dev-cloud.airbyte.io>
to the webapp, except for <http://dev-cloud.airbyte.io/api|dev-cloud.airbyte.io/api>
, and setting this as an env var sufficient?
Apologies if this is a basic question - been a while since I've done front end stuffJared Rhizor (Airbyte)
Jared Rhizor (Airbyte)
Davin Chia (Airbyte)
Davin Chia (Airbyte)
Davin Chia (Airbyte)
Davin Chia (Airbyte)
/api
to the webapp