unfoldingWord / tc-create-app

translationCore Create
https://create.translationcore.com/
MIT License
0 stars 5 forks source link

Add URL parameter to specify DCS instance domain:port #1435

Open richmahn opened 1 year ago

richmahn commented 1 year ago

Suggest that we can chose where both dev (local & netlify) and prod instances of tC-create can have the DCS server set via the URL params as gatewayEdit does, with server=qa, yet to allow domain name.. DCS can even be ran local and is self contained (including the catalog API), meaning it can even be ran as a Docker container. I suggest that the param can be as follows:

server=[:]

For example:

server=qa.door43.org server=https://develop.door43.org server=localhost:3000 server=127.0.0.1 server=http://dcs

If no port, assumes port 80. If domain is localhost or 127.0.0.1 assume protocol to be http, unless one is given like in the 2nd and last example.