quasar dev command to use https
I am trying to get google auth working in my quasar app.
My google auth console will redirect the user to a https url (in my case I have set it to https://localhost:8080/auth/google
The problem is when I run the command ‘quasar dev’ on my local machine the urls are all http not https:
Can I provide a certificate to the ‘quasar dev’ command to run in https mode on my local machine?
Basically ‘quasar dev’ starts up an express server with webpack middleware. Take a look at ‘/build/script.dev.js’. This is the place where you need to make the necessary changes that you want for the Express server to run on HTTPS.
RichAyotte last edited by
Here’s what I came up with. https://gist.github.com/RichAyotte/8243ebf768f059a634206a201f5c5851
Is this still valid? I don’t see a /build/script.dev.js in my file structure anywhere. What am I missing?
@rconstantine For v0.15+, quasar.conf > devServer > https: true
@rstoenescu Thanks for the reply. I tried to specify my own key and cert but when I try to import fs so I can load them, I get an error. See this: https://forum.quasar-framework.org/topic/2594/how-do-you-setup-https-for-both-dev-and-prod-with-your-own-keys-and-certs/2
Thanks for all of your work on Quasar.