mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
docs: update devServer.https
example (#19486)
This commit is contained in:
parent
abcd27ae03
commit
b9e6980a62
@ -7,15 +7,14 @@ export default defineUntypedSchema({
|
||||
*
|
||||
* @example
|
||||
* ```
|
||||
* import { fileURLToPath } from 'node:url'
|
||||
* export default {
|
||||
* server: {
|
||||
* export default defineNuxtConfig({
|
||||
* devServer: {
|
||||
* https: {
|
||||
* key: fs.readFileSync(fileURLToPath(new URL('./server.key', import.meta.url))),
|
||||
* cert: fs.readFileSync(fileURLToPath(new URL('./server.crt', import.meta.url)))
|
||||
* key: './server.key',
|
||||
* cert: './server.crt'
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
* })
|
||||
* ```
|
||||
*
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user