chore(config): 修改devServer host配置为0.0.0.0

This commit is contained in:
scout 2025-01-15 13:05:07 +08:00
parent 4e03cb3f6d
commit bc94c51e2d

View File

@ -147,7 +147,7 @@ export default defineNuxtConfig({
// 指定 Nuxt 应用程序的兼容性日期,确保应用程序在未来的 Nuxt 版本中保持稳定性
compatibilityDate: '2025-01-09',
devServer: {
host: 'localhost', // Set the host to 'localhost'
host: '0.0.0.0', // Set the host to 'localhost'
port: 3000, // Set the port to 3000 or any other port you prefer
},
})