Skip to content

feat: Heartbeat the Makeswift preview session - #1415

Open
parthshahp wants to merge 2 commits into
parthshah/ltrac-1794-stencil-cli-sign-every-proxied-request-with-an-hmac-prooffrom
parthshah/ltrac-1796-stencil-cli-session-heartbeat-and-re-registration-on-expiry
Open

parthshahp wants to merge 2 commits into
parthshah/ltrac-1794-stencil-cli-sign-every-proxied-request-with-an-hmac-prooffrom
parthshah/ltrac-1796-stencil-cli-session-heartbeat-and-re-registration-on-expiry

Conversation

@parthshahp

@parthshahp parthshahp commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

What?

Send a heartbeat to keep the Makeswift preview session alive, and register again when the session expires.

Tickets / Documentation

cc @bigcommerce/storefront-team

@parthshahp
parthshahp added this pull request to stack #1417 October 8, 2026 15:17
@parthshahp
parthshahp force-pushed the parthshah/ltrac-1796-stencil-cli-session-heartbeat-and-re-registration-on-expiry branch from b319e43 to bf8fded Compare October 8, 2026 15:18
@parthshahp
parthshahp marked this pull request as ready for review October 8, 2026 17:56

@rtalvarez rtalvarez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we can just use a heartbeat library to alleviate some of the stuff in this PR

@parthshahp
parthshahp force-pushed the parthshah/ltrac-1796-stencil-cli-session-heartbeat-and-re-registration-on-expiry branch from bf8fded to 32da3fb Compare October 9, 2026 15:06
@parthshahp

Copy link
Copy Markdown
Contributor Author

Couldn't find one that fit our use case well without also requiring more boiler plate than we already have.

I refactored the PreviewSessionHeartbeat.js file to be more readable (and remove some extraneous logic).

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