12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- import { defineNuxtConfig } from 'nuxt/config';
- import Components from 'unplugin-vue-components/vite';
- import { NaiveUiResolver } from 'unplugin-vue-components/resolvers';
- // https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
- export default defineNuxtConfig({
- ssr: true,
- devtools: { enabled: true },
- app: {
- head: {
- meta: [
- { charset: 'utf-8' },
- { name: 'viewport', content: 'width=device-width, initial-scale=1' },
- { name: 'keywords', content: '红杉天枰,人工智能,大模型,水务,水务大模型,水务机器人,LibraAI,碳中和,碳交易,碳资产开发,碳排放核算,CBAM,双碳路径规划,ESG' },
- { name: 'description', content: '红杉天枰致力于将人工智能技术应用于水务、消防、市政及碳中和等领域,打造“LibraAI+”系列垂直大模型,提升行业智能化水平。同时深耕双碳领域,提供专业的碳资产开发、碳交易咨询、ESG评估、CBAM策略制定以及双碳路径规划等全方位解决方案,助力企业和机构实现绿色可持续发展。' },
- ]
- }
- },
- i18n: {
- strategy: 'no_prefix',
- locales: ["en", "zh"],
- defaultLocale: 'zh',
- vueI18n: './i18n.config.ts',
- },
- tailwindcss: {
- configPath: '~/tailwind.config.ts',
- },
- runtimeConfig: {
- public: {
- apiBase: process.env.NUXT_PUBLIC_API_BASE,
- }
- },
- modules: [
- '@nuxtjs/i18n',
- '@nuxtjs/tailwindcss',
- 'nuxt-icons',
- 'nuxt-swiper',
- 'nuxt-aos'
- ],
- css: [
- "./assets/css/reset.css",
- ],
- aos: {
- duration: 800,
- delay: 0,
- anchorPlacement: 'center-bottom',
- easing: 'ease',
- once: true
- },
- build: {
- transpile: process.env.NODE_ENV === 'production' ? ['naive-ui', 'vueuc', '@css-render/vue3-ssr', '@juggle/resize-observer', 'date-fns', '@css-render/plugin-bem',] : ['@juggle/resize-observer']
- },
- vite: {
- css: {
- preprocessorOptions: {
- scss: {
- additionalData: '@use "@/assets/css/index.scss" as *;'
- }
- }
- },
- plugins: [
- Components({
- dts: true,
- resolvers: [NaiveUiResolver()],
- }),
- ],
- }
- })
|