fastify / fastify-vite

Fastify plugin for Vite integration.
MIT License
849 stars 71 forks source link

Websocket can not connect when using https fastify #109

Closed benatshippabo closed 1 year ago

benatshippabo commented 1 year ago

Prerequisites

Fastify version

^4.17.0

Plugin version

^4.0.0

Node.js version

v18.16.0

Operating system

macOS

Operating system version (i.e. 20.04, 11.3, 10)

13.3.1 (22E261)

Description

App served via the @fastify/vite plugin does not work when configuring fastify to use https and http2

Steps to Reproduce

Reproduction repository: https://github.com/benatshippabo/fastify-vite-test

git clone https://github.com/benatshippabo/fastify-vite-test.git
cd fastify-vite-test
yarn
yarn ts-node devserver.ts

Expected Behavior

Going to https://localhost:3000 and editing ./src/App.tsx hot reloads properly with no errors about connectivity issues to the websocket.