Last active
July 27, 2023 02:56
-
-
Save mkdym/e2df3f657950c13ad0e6e0d9da7ccf90 to your computer and use it in GitHub Desktop.
vite server https
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from 'fs' | |
export default defineConfig({ | |
... | |
server: { | |
https: { | |
key: fs.readFileSync('server.key'), | |
cert: fs.readFileSync('server.cert'), | |
}, | |
port: 443, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment