ct/nuxt.config.ts
2025-10-20 09:44:11 +08:00

86 lines
3.0 KiB
TypeScript

export default defineNuxtConfig({
compatibilityDate: '2025-07-15',
devtools: {enabled: true},
modules: ['@nuxt/eslint', '@nuxt/ui', '@nuxt/image', '@nuxtjs/sitemap'],
// 开发服务器配置 - 支持手机访问
devServer: {
host: '0.0.0.0', // 允许外部访问
port: 3000
},
// SEO配置
site: {
url: 'https://ccttiot.com',
name: '创特物联',
description: '创特物联专注于共享经济解决方案的物联网科技公司,致力于通过技术创新推动行业发展。',
defaultLocale: 'zh-CN'
},
// Sitemap配置
sitemap: {},
fonts: {
providers: {
google: false, // 禁用 Google Fonts
googleicons: false // 禁用 Google Icons
}
},
// 预渲染配置
nitro: {
prerender: {
routes: [],
crawlLinks: true
}
},
// 应用配置
app: {
head: {
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
title: '创特物联 - 共享经济解决方案专家',
meta: [
{
name: 'description',
content: '创特物联专注于共享经济解决方案的物联网科技公司,提供共享电动车、共享汽车、共享充电桩等全方位技术解决方案。'
},
{
name: 'keywords',
content: '创特物联,共享经济,物联网,共享电动车,共享汽车,共享充电桩,共享解决方案,物联网科技,北京物联网公司'
},
{name: 'author', content: '创特物联'},
{name: 'robots', content: 'index, follow'},
{name: 'language', content: 'zh-CN'},
{name: 'theme-color', content: '#2563eb'},
{name: 'msapplication-TileColor', content: '#2563eb'},
{name: 'application-name', content: '创特物联'},
{name: 'apple-mobile-web-app-title', content: '创特物联'},
{name: 'apple-mobile-web-app-capable', content: 'yes'},
{name: 'apple-mobile-web-app-status-bar-style', content: 'default'},
{name: 'format-detection', content: 'telephone=no'},
{name: 'mobile-web-app-capable', content: 'yes'},
{name: 'msapplication-tap-highlight', content: 'no'}
],
link: [
{rel: 'icon', type: 'image/x-icon', href: '/favicon.ico'},
{rel: 'apple-touch-icon', href: '/apple-touch-icon.png'},
{rel: 'manifest', href: '/manifest.json'}
],
script: [
{
src: '/js/jquery-1.10.2.js',
type: 'text/javascript',
defer: true
},
{
src: '/js/bootstrap.min.js',
type: 'text/javascript',
defer: true
}
]
}
}
})