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

update http/2 instructions #466

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions docs/04-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,13 @@ npm start -- --secure

#### Generating SSL Certificates

You can automatically generate credentials for your project via either:
You can automatically generate credentials for your project via:

- [devcert (no install required)](https://github.com/davewasmer/devcert-cli): `npx devcert-cli generate localhost`
- [mkcert (install required)](https://github.com/FiloSottile/mkcert): `mkcert -install && mkcert localhost`
- [mkcert](https://github.com/FiloSottile/mkcert): `mkcert -install && mkcert -key-file snowpack.key -cert-file snowpack.crt localhost`

#### HTTP2

Not sure what to write here...
If you use snowpack's proxy settings to forward your API requests, you'll need to make sure the API server can handle HTTP/2 requests.

### Import Maps

Expand Down
13 changes: 5 additions & 8 deletions src/commands/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,17 +431,14 @@ export async function command(commandOptions: CommandOptions) {
),
);
console.log();
console.log('You can automatically generate credentials for your project via either:');
console.log('You can automatically generate credentials for your project via:');
console.log();
console.log(
` - ${chalk.cyan('devcert')}: ${chalk.yellow('npx devcert-cli generate localhost')}`,
` - ${chalk.cyan('mkcert')}: ${chalk.yellow(
'mkcert -install && mkcert -key-file snowpack.key -cert-file snowpack.crt',
)} localhost`,
);
console.log(' https://github.com/davewasmer/devcert-cli (no install required)');
console.log();
console.log(
` - ${chalk.cyan('mkcert')}: ${chalk.yellow('mkcert -install && mkcert localhost')}`,
);
console.log(' https://github.com/FiloSottile/mkcert (install required)');
console.log(' https://github.com/FiloSottile/mkcert');
console.log();
process.exit(1);
}
Expand Down