You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, I don't know if this falls into feature request category or bug so forgive me if I'm using the wrong type of issue.
Just like #139 , all we really know is how to configure https with pure Vite environment. Sadly, Vite's server.https doesn't work with current/latest solid start setup. While it's possible to mitigate or work around this using reverse proxy, IMHO, It's more preferable if official framework support this, just like when working in Vite.
Is there a way to configure local development server to use HTTPs? If not, will local HTTPs feature be implemented/supported in the future?
Thanks.
Expected behavior 🤔
A working dev server using secured HTTP
Steps to reproduce 🕹
Steps if following vite https recommendation:
Install basic ssl plugin such as @vite/plugin-basic-ssl or vite-plugin-mkcert
Setup the plugin
Access dev with https protocol
Browser show ssl error/misconfigured ssl
Context 🔦
I'm trying to develop/use feature which are strictly blocked by server when using non-secure context (for example, Worker).
import{defineConfig}from"@solidjs/start/config";importmkcertfrom"vite-plugin-mkcert";exportdefaultdefineConfig({ssr: true,vite: {server: {https: true},plugins: [mkcert({force: true,savePath: "./certs",}),],},// run once with this commented out, then leave it uncommented all other times// server: {// https: {// cert: "./certs/cert.pem",// key: "./certs/dev.pem",// },// },});
@Brendonovich Ah thanks, didn't know that it's already supported in vinxi instead.
But well, in my defense, vinxi server.https is currently untyped and I just realized I already look at nksaraf/vinxi#307 but I don't even bother reading the issue content, thinking its unrelated, I'm so dumb 💀.
Anyway, thanks for your help, both here and there :D
Duplicates
Latest version
Current behavior 😯
Well, I don't know if this falls into feature request category or bug so forgive me if I'm using the wrong type of issue.
Just like #139 , all we really know is how to configure https with pure Vite environment. Sadly, Vite's
server.https
doesn't work with current/latest solid start setup. While it's possible to mitigate or work around this using reverse proxy, IMHO, It's more preferable if official framework support this, just like when working in Vite.Is there a way to configure local development server to use HTTPs? If not, will local HTTPs feature be implemented/supported in the future?
Thanks.
Expected behavior 🤔
A working dev server using secured HTTP
Steps to reproduce 🕹
Steps if following vite https recommendation:
@vite/plugin-basic-ssl
orvite-plugin-mkcert
Context 🔦
I'm trying to develop/use feature which are strictly blocked by server when using non-secure context (for example, Worker).
Your environment 🌎
The text was updated successfully, but these errors were encountered: