1 Star 0 Fork 0

Hooper/douban-nuxt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nuxt.config.ts 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
hoap 提交于 2025-04-19 15:37 +08:00 . feat: 引入 Pinia 进行全局用户状态管理
// 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'
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hobk/douban-nuxt.git
git@gitee.com:hobk/douban-nuxt.git
hobk
douban-nuxt
douban-nuxt
master

搜索帮助