-
Notifications
You must be signed in to change notification settings - Fork 365
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
feat: add serve
command
#5351
feat: add serve
command
#5351
Conversation
Co-authored-by: Matt Kane <m@mk.gg>
📊 Benchmark resultsComparing with 2b7045e Package size: 259 MB(no change)
Legend
|
serve
commandserve
command
const { success } = await buildSite(buildSiteOptions) | ||
|
||
if (!success) { | ||
error('Could not start local server due to a build error') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ascorbic This addresses a comment you made earlier.
Co-authored-by: Matt Kane <m@mk.gg>
@ascorbic Could you give this another look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I thought I'd already re-reviewed it! Can confirm I've been using this and it works great.
Hey @eduardoboucas, I was just starting to create the docs issue to add this to the Get Started with the CLI doc once this is no longer in beta and I went to refer to the CLI command reference docs that you link to from the readme, but it doesn't look like those were added ( |
Hmm, that's weird. That file should've been created automatically and deployed to the docs site, but for some reason it wasn't. I'll investigate. |
Summary
Builds on top of #5338 and moves the
--prod
flag into a separateserve
command. I used this opportunity to move a bunch of logic our of the dev command file and into auxiliary files that can be included from multiple commands, so the diff looks much scarier than it actually is.I tried to add some comments about which parts have moved around, and I'm happy to answer any questions about what changed.