docs: update devServer.https example (#19486)

This commit is contained in:
Samuel DIDIER-LAURENT 2023-03-06 23:54:40 +01:00 committed by GitHub
parent abcd27ae03
commit b9e6980a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,15 +7,14 @@ export default defineUntypedSchema({
* *
* @example * @example
* ``` * ```
* import { fileURLToPath } from 'node:url' * export default defineNuxtConfig({
* export default { * devServer: {
* server: {
* https: { * https: {
* key: fs.readFileSync(fileURLToPath(new URL('./server.key', import.meta.url))), * key: './server.key',
* cert: fs.readFileSync(fileURLToPath(new URL('./server.crt', import.meta.url))) * cert: './server.crt'
* } * }
* } * }
* } * })
* ``` * ```
* *
* *