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

fix(core): added client side url builder #741

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

boyney123
Copy link
Collaborator

As more integrations come on board the eventcatalog.config.js may include node libs (e.g path), that the client cannot use or understand.

In this case the NodeGraph was using the urlBuilder which uses the config file (eventcatalog.config.js) which threw an error as the server side API are not in the browser.

Simple solution for now, was to build a urlBuilder for the client that does not require the config file, but is passed the options instead.

This means any client components build in the future that want a URL building would have to use this. Which I think is OK, for now anyway. We can review in the future.

Copy link

changeset-bot bot commented Aug 29, 2024

🦋 Changeset detected

Latest commit: 869cc33

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eventcatalog/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@boyney123 boyney123 merged commit b6052d9 into main Aug 29, 2024
3 checks passed
@boyney123 boyney123 deleted the fixing-clientside-trailingslash branch August 29, 2024 18:23
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