Using https for HMR with puma-dev #215
ledermann
started this conversation in
Show and tell
Replies: 1 comment 4 replies
-
Hi Georg! Glad that you find it useful, and thank you for the Rails version of Thanks for sharing this recipe! I've added a link in the FAQs to this discussion. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @ElMassimo, thanks for this great project! I'm trying to migrate some Rails projects from
webpacker
tovite_ruby
and it seems a bit hard to configure Vite forhttps
withpuma-dev
in development.In the
puma-dev
docs there is a recipe forwebpack-dev-server
(via proxy):https://github.com/puma/puma-dev#webpack-dev-server
I was successful to adopt this for Vite with the following configuration, which I would like to share:
Set up
puma-dev
:Edit vite.json:
Add this vite.config.ts:
Edit
content_security_policy.rb
:Now the app is available locally at
https://myapp.test
using HMR viahttps
, too.Beta Was this translation helpful? Give feedback.
All reactions