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

Replace vite preview with sirv-cli until HTTP2 header compression issue is fixed #6

Closed
Greenheart opened this issue Apr 24, 2021 · 1 comment

Comments

@Greenheart
Copy link
Owner

Greenheart commented Apr 24, 2021

This issue can be avoided by using another preview server.

  1. Add sirv-cli as dev dependency by running npm i -D sirv-cli

  2. Replace vite preview with sirv-cli in the serve npm script

// package.json

"scripts": {
    "serve": "sirv web/build --http2 --key priv.pem --cert cert.pem"
}
@Greenheart Greenheart changed the title Replace vite serve with sirv-cli until HTTP2 header compression issue is fixed Replace vite preview with sirv-cli until HTTP2 header compression issue is fixed Apr 24, 2021
@Greenheart
Copy link
Owner Author

Will be resolved in pagecrypt@3.0.0

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

No branches or pull requests

1 participant