代码拉取完成,页面将自动刷新
// https://nuxt.com/docs/api/configuration/nuxt-config
export default {
compatibilityDate: '2025-04-13',
devtools: { enabled: true },
// 启用模块
modules: ['@nuxtjs/tailwindcss', '@nuxt/scripts','@pinia/nuxt'],
scripts: {
registry: {
clarity: {
id: 'r3jrhwwjs8'
}
}
},
// Vue Easy Lightbox 配置为客户端组件
build: {
transpile: ['vue-easy-lightbox']
},
// 组件配置
components: {
global: true,
dirs: ['~/components']
},
// 应用设置
app: {
head: {
title: '猪猪租房 - 租房信息交流平台',
meta: [
{ charset: 'utf-8' },
{ lang: 'zh-CN' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'description', content: '猪猪租房,提供最新租房、找室友、转租等信息' },
{ name: 'baidu-site-verification', content: 'codeva-yhg0gi3Wt2' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
],
}
},
// 全局 CSS
css: [
'~/assets/css/main.css'
],
// 环境变量配置
nitro: {
preset: 'node-server',
runtimeConfig: {
public: {
apiBase: process.env.NUXT_PUBLIC_API_BASE || '/api',
},
private: {
mongoUri: process.env.MONGODB_URI || 'mongodb://root:h00peradmin@127.0.0.1:27017/douban?authSource=admin'
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。