Skip to content

8828489432 Fix broken web component setup in SSR environments#18

Merged
Chilledson merged 3 commits into
tebexio:release-v1.6.0from
tebexjaames:8828489432-fix-next-ssr
Apr 1, 2025
Merged

8828489432 Fix broken web component setup in SSR environments#18
Chilledson merged 3 commits into
tebexio:release-v1.6.0from
tebexjaames:8828489432-fix-next-ssr

Conversation

@tebexjaames

Copy link
Copy Markdown
Contributor

The web component definition in src/webComponents/TebexCheckout.ts was causing issues in a Next + Electron project since it seems to have a SSR portion where HTMLElement isn't defined. This just wraps that class definition in a function which is only called in browser environments. I made sure that the TebexCheckout type is still exported correctly, so it should be fully backwards-compatible.

@tebexjaames
tebexjaames requested a review from Chilledson April 1, 2025 10:56
@tebexjaames tebexjaames changed the title Fix broken web component setup in SSR environments 8828489432 Fix broken web component setup in SSR environments Apr 1, 2025
@Chilledson
Chilledson changed the base branch from main to release-v1.6.0 April 1, 2025 12:19
@Chilledson

Copy link
Copy Markdown
Contributor

Hey @tebexjaames could you resolve the merge conflicts? :)

@tebexjaames

Copy link
Copy Markdown
Contributor Author

@Chilledson Done; just needed a rebuild :)

@Chilledson
Chilledson merged commit a94e53f into tebexio:release-v1.6.0 Apr 1, 2025
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.

2 participants