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

Auto version resolution based on source query parameter #149

Open
CS76 opened this issue Sep 7, 2023 · 1 comment
Open

Auto version resolution based on source query parameter #149

CS76 opened this issue Sep 7, 2023 · 1 comment
Assignees

Comments

@CS76
Copy link
Member

CS76 commented Sep 7, 2023

NMRium react wrapper latest URL should resolve to the right Chemotion compatible version of the NMRium reach wrapper

@hamed-musallam
Copy link
Collaborator

hamed-musallam commented Sep 7, 2023

@CS76

We can create a simple JS service to redirect a URL to another URL based on specific conditions, which i think is suitable to our needs without adding additional complication.

so we need to have a separate project "nmrium-wrapper-redirect-service" which is a simple web page that uses pure js to redirect the URLs, It should be published to the production domain.

here you can find a simple implementation of the idea.

wrapper-redirect-service.zip

the way above involves client-side implementation only. Alternatively, for the advantage of storing the URL mapping list in environment variables or within a database, the process can be executed server-side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants