SolidJSS
SolidJSโ€ข2y agoโ€ข
1 reply
Luka

Vite Certificate

I just ran into problem while creating certificate for localhost, using vite I changed app.config.js the code below is my configuration

import { defineConfig } from "@solidjs/start/config"; import mkcert from "vite-plugin-mkcert"; export default defineConfig({ ssr: true, vite: { server: { https: true }, plugins: [ mkcert({ force: true, savePath: "./cert", }), ], }, server: { https: { cert: "./cert/cert.pem", key: "./cert/dev.pem" }, }, })

I expect it to create valid certificate but browsers warn that its certificate is not valid.
Was this page helpful?