Files
urldb/web/nuxt.config.ts

42 lines
1.1 KiB
TypeScript
Raw Normal View History

2025-07-10 01:27:35 +08:00
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
'@nuxtjs/tailwindcss',
'@pinia/nuxt',
],
css: [
'~/assets/css/main.css',
'vfonts/Lato.css',
'vfonts/FiraCode.css',
],
app: {
head: {
2025-07-10 13:58:28 +08:00
title: '网盘资源管理系统',
2025-07-10 01:27:35 +08:00
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
2025-07-10 13:58:28 +08:00
{ name: 'description', content: '网盘资源管理系统 - 一个现代化的资源管理系统' }
2025-07-10 01:27:35 +08:00
],
link: [
2025-07-10 21:14:17 +08:00
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
2025-07-10 13:58:28 +08:00
{
2025-07-10 21:14:17 +08:00
rel: 'stylesheet',
href: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css'
2025-07-10 13:58:28 +08:00
}
2025-07-10 01:27:35 +08:00
]
}
},
runtimeConfig: {
public: {
apiBase: process.env.API_BASE || 'http://localhost:8080/api'
}
},
build: {
transpile: ['naive-ui', 'vueuc', '@css-render/vue3-ssr', '@juggle/resize-observer']
2025-07-10 13:58:28 +08:00
},
ssr: true,
nitro: {
preset: 'node'
2025-07-10 01:27:35 +08:00
}
})