-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use own certificates in dev mode #2510
Comments
Please provide a repository that reproduces this. I can't recreate the steps for all 200+ issues like researching how to generate |
You wrote this:
Did you mean to write this?
|
Yes, I've edited my original reproduction snippet. I'm working on a repository for this issue, although the actual PEM files don't even need to be generated in order to reproduce the issue. They can be empty arrays and will still be flagged by the |
I've updated my original post to include a link to this repository: https://github.com/taylorzane/svelte-kit-https-repro |
Thanks! I was having trouble reproducing. It turns out that I actually was, but there's another bug that was hiding the error message from me: #2511 😝 |
const config = {
kit: {
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte',
vite: () => ({
server: {
host: '0.0.0.0',
port: 3000,
https: {
key: readFileSync('/app.loc.key'),
cert: readFileSync('/app.loc.crt')
},
hmr: {
host: 'app.loc',
protocol: 'wss',
port: 24678
}
}
})
}
}; I develop under singed certificates locally but unfortunately above config does not work any more.
A fix is highly appreciated. 👍 Ref: vitejs/vite#1992. |
I am still unable to use a custom HTTPS certificate, it seems SvelteKit is ignoring EDIT: After some investigation, it seems the code that was patched in #2512 is different after shipping to |
"Longtime listener, first-time caller." I can confirm that config.kit.vite.server.https.cert and config.kit.vite.server.https.key are not being passed/recognized by svelte-kit dev for any release after next.168. |
Absolutely. |
@talgolan have you filed a new issue and if so can you link me please, thx. |
@robots4life: Here's the issue I created... I believe @benmccann has already corrected the problem. I'm just waiting for a new version to confirm. |
I just kicked off a new release |
Describe the bug
When using SvelteKit in HTTPS mode, it is no longer possible (as of #2232) to specify a collection of HTTPS certificates in the
svelte.config.js
file.Reproduction
MVP Repository to cause the error (doesn't actually have certificates, but they're not important at this point)
https://github.com/taylorzane/svelte-kit-https-repro
svelte.config.js
Logs
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: