Skip to content

Commit 68f976c

Browse files
authored
Update packages/kit/src/exports/vite/index.js
1 parent 6ab649d commit 68f976c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/kit/src/exports/vite/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ async function kit({ svelte_config }) {
353353
const vite_basic_ssl = config.plugins.find(({ name }) => name === 'vite:basic-ssl');
354354

355355
// by default, when enabling HTTPS in Vite, it also enables HTTP/2
356-
// however, undici's Headers implementation does not like the HTTP/2 headers
356+
// however, undici has not yet enabled HTTP/2 by default: https://github.com/nodejs/undici/issues/2750
357357
// we set a no-op proxy config to force Vite to downgrade to TLS-only
358358
// see https://vitejs.dev/config/#server-https
359359
if ((config.server.https || vite_basic_ssl) && !config.server.proxy) {

0 commit comments

Comments
 (0)