lhapaipai / symfony-vite-dev

Monorepo for symfony-vite development
https://symfony-vite.pentatrion.com
Other
19 stars 19 forks source link

update tips.md #17

Closed nlemoine closed 4 months ago

nlemoine commented 4 months ago

Add alternative option to use the symfony-cli certificate

netlify[bot] commented 4 months ago

Deploy Preview for cosmic-bubblegum-aa631a ready!

Name Link
Latest commit 2e1be7e7eb387da488a4c2a09a0291f8412f28ac
Latest deploy log https://app.netlify.com/sites/cosmic-bubblegum-aa631a/deploys/65c88c8adeede20008680993
Deploy Preview https://deploy-preview-17--cosmic-bubblegum-aa631a.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

nlemoine commented 4 months ago

Salut @lhapaipai!

Thanks for these awesome packages.

I've added some docs to the HTTPS tips section. Instead of generating your own certificates, you can still use the ones from symfony cli. Saves you the "pain" of generating your own for each project.

I even wonder if this could be automated in vite-plugin-symfony? So https works out of the box.

lhapaipai commented 4 months ago

Thanks @nlemoine ! I hadn't been aware that NODE_OPTIONS=--openssl-legacy-provider was no longer needed... I also think this could be automated.

nlemoine commented 4 months ago

I hadn't been aware that NODE_OPTIONS=--openssl-legacy-provider was no longer needed...

I wasn't aware either and actually discovered it was no longer needed with more recent versions of symfony-cli while looking for the PR link I included in the docs ^^

I also think this could be automated.

That would be great! I guess this is just about checking if a certificate hasn't been provided by the user vite config and if not fill the pfx path if the file exists.