2022-10-27 10:36:37 +00:00
|
|
|
import { defineUntypedSchema } from 'untyped'
|
|
|
|
|
|
|
|
export default defineUntypedSchema({
|
|
|
|
devServer: {
|
|
|
|
/**
|
|
|
|
* Whether to enable HTTPS.
|
|
|
|
*
|
|
|
|
* @example
|
|
|
|
* ```
|
|
|
|
* import { fileURLToPath } from 'node:url'
|
|
|
|
* export default {
|
|
|
|
* server: {
|
|
|
|
* https: {
|
|
|
|
* key: fs.readFileSync(fileURLToPath(new URL('./server.key', import.meta.url))),
|
|
|
|
* cert: fs.readFileSync(fileURLToPath(new URL('./server.crt', import.meta.url)))
|
|
|
|
* }
|
|
|
|
* }
|
|
|
|
* }
|
|
|
|
* ```
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @type {false | { key: string; cert: string }}
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
https: false,
|
|
|
|
|
|
|
|
/** Dev server listening port */
|
|
|
|
port: process.env.NUXT_PORT || process.env.NITRO_PORT || process.env.PORT || 3000,
|
|
|
|
|
|
|
|
/** Dev server listening host */
|
2023-02-16 13:17:56 +00:00
|
|
|
host: process.env.NUXT_HOST || process.env.NITRO_HOST || process.env.HOST || '',
|
2022-10-27 10:36:37 +00:00
|
|
|
|
|
|
|
/**
|
2023-02-16 13:17:56 +00:00
|
|
|
* Listening dev server URL.
|
|
|
|
*
|
|
|
|
* This should not be set directly as it will always be overridden by the
|
|
|
|
* dev server with the full URL (for module and internal use).
|
2022-10-27 10:36:37 +00:00
|
|
|
*/
|
|
|
|
url: 'http://localhost:3000',
|
|
|
|
}
|
|
|
|
})
|