Skip to content

Commit

Permalink
docs: update devServer.https example (#19486)
Browse files Browse the repository at this point in the history
  • Loading branch information
iStuffs committed Mar 6, 2023
1 parent abcd27a commit b9e6980
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/schema/src/config/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
* }
* }
* }
* })
* ```
*
*
Expand Down

0 comments on commit b9e6980

Please sign in to comment.