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

feat: add serve command #136

Merged
merged 2 commits into from
Nov 20, 2020
Merged

feat: add serve command #136

merged 2 commits into from
Nov 20, 2020

Conversation

kiaking
Copy link
Member

@kiaking kiaking commented Nov 19, 2020

This PR adds a new serve command inspired by Nuxt's start command. It will serve static files under .vitepress/dist folder generated by build command.

This is an easy way to test your production build files locally.

$ vitepress build # build docs first
$ vitepress serve # serve the built docs locally

Using Koa and Koa Static as the web server since it's already included with Vite.

@kiaking kiaking added the enhancement New feature or request label Nov 19, 2020
@kiaking kiaking self-assigned this Nov 19, 2020
@kiaking kiaking merged commit 67868bd into master Nov 20, 2020
@kiaking kiaking deleted the serve-command branch November 20, 2020 06:52
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant