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

Add a compileClient option #1352

Merged
merged 4 commits into from
Jan 8, 2024
Merged

Add a compileClient option #1352

merged 4 commits into from
Jan 8, 2024

Conversation

ricardo-devis-agullo
Copy link
Collaborator

@ricardo-devis-agullo ricardo-devis-agullo commented Jan 5, 2024

This adds a new option for the registry config

compileClient?: boolean

The idea behind is that, if set to true, the oc-client will be compiled and served from the registry, and it will include all the templates registered on the registry (the ones you add on the templates option of your config). So when calling your-registry/oc-client/client.js, you will get a client with the templates your registry has registered. It has the penalty of not being accessed through CDN, but you can put one in front of the endpoint if you wanted

@ricardo-devis-agullo ricardo-devis-agullo changed the title allow for customClient option Add a compileClient option Jan 6, 2024
@ricardo-devis-agullo ricardo-devis-agullo merged commit fc4bd65 into master Jan 8, 2024
3 checks passed
@ricardo-devis-agullo ricardo-devis-agullo deleted the custom-client branch January 8, 2024 09:32
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

Successfully merging this pull request may close these issues.

1 participant