Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow both frontend and api to respond when proxied under a sub-uri #99

Closed
robinwn opened this issue May 25, 2020 · 1 comment
Closed
Assignees
Labels
✗ bug Something isn't working devops Deployment, configuration, etc.

Comments

@robinwn
Copy link
Contributor

robinwn commented May 25, 2020

The web app (front end and api) needs to be configurable to allow it to be hosted under a variety of URIs. These URIs typically are typically within a larger URI space within business website and are further differentiated by an environment, eg. dev, test and production.
eg.

  • https://<business_area>.gov.bc.ca/surveys/ (production)
  • https://<business_area>.gov.bc.ca/dev/surveys/ (development)
  • https://<business_area>.gov.bc.ca/test/surveys/ (testing)

On the api side, this can often be met by using appsettings..json

On the client side routing is handled both serverside and clientside. From what i've seen so far, the options seem to be limited to compile time injection of the base URI which ends up in the and hardcoded by React or Angular for the client side routing.

@robinwn robinwn added devops Deployment, configuration, etc. ✗ bug Something isn't working labels May 25, 2020
hangler added a commit that referenced this issue May 26, 2020
@hangler
Copy link
Contributor

hangler commented May 26, 2020

I believe the fix to #98 fixes this too. Closing this one up. @robinwn let me know if they're not actually linked and I'm misunderstanding something!

@hangler hangler closed this as completed May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✗ bug Something isn't working devops Deployment, configuration, etc.
Projects
None yet
Development

No branches or pull requests

2 participants