Skip to content

Conversation

@abdulsattar
Copy link
Collaborator

@abdulsattar abdulsattar commented Jul 10, 2025

What does this PR do?

Launches site in preview URL

What issues does this PR fix or reference?

@W-18283821@

@abdulsattar abdulsattar requested review from a team as code owners July 10, 2025 16:42
@abdulsattar abdulsattar changed the title feat: launch site preview feat: launch site preview @W-18283821 Jul 10, 2025
url.searchParams.set('lwc.mode', 'dev');
await open(url.toString());
return;
}
Copy link
Collaborator

@nrkruk nrkruk Jul 10, 2025

Choose a reason for hiding this comment

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

nit: could we separate this out in into two different function calls? Run method then just calls previewHMR() / previewSSR() based on the 'ssr' cli arg being there?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@abdulsattar abdulsattar enabled auto-merge (squash) July 10, 2025 21:26
@abdulsattar abdulsattar changed the title feat: launch site preview @W-18283821 feat: launch site preview @W-18283821@ Jul 10, 2025
@abdulsattar abdulsattar merged commit b8a8844 into main Jul 11, 2025
12 checks passed
@abdulsattar abdulsattar deleted the abdulsattar/site-preview branch July 11, 2025 00:08
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.

3 participants