75 行
2.8 KiB
JavaScript
75 行
2.8 KiB
JavaScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||
export default defineNuxtConfig({
|
||
ssr: true,
|
||
|
||
nitro: {
|
||
// preset: 'static' 已移除——静态模式下 server/api/ 不可用。
|
||
// 部署时使用 `nuxt build` + Node.js 服务器(如 PM2)。
|
||
// 若必须静态部署,需将表单改为第三方服务(飞书/EmailJS 等)。
|
||
prerender: {
|
||
crawlLinks: true,
|
||
routes: [
|
||
'/', '/about', '/products', '/summer-camp', '/winter-camp', '/courses', '/guides', '/guide-custom', '/faq', '/reviews', '/contact', '/customize', '/pricing', '/selector', '/sitemap.xml',
|
||
'/products/v9-4d3n', '/products/v9-5d4n', '/products/v9-6d5n-family',
|
||
'/products/v9-6d5n-comfort', '/products/v9-7d6n-family', '/products/v9-7d6n-wild',
|
||
'/products/autumn', '/products/winter',
|
||
'/destinations',
|
||
'/destinations/moriguole', '/destinations/eergunashire', '/destinations/baihualin',
|
||
'/destinations/enhe-shiwei', '/destinations/heishantou', '/destinations/manzhouli',
|
||
'/destinations/hulunhu', '/destinations/aershan', '/destinations/shiwei',
|
||
'/destinations/daxinganling', '/destinations/aoluguya', '/destinations/genhe',
|
||
'/gallery',
|
||
'/news', '/calendar',
|
||
'/stories',
|
||
'/blog',
|
||
'/blog/hulunbuir-travel-guide-2026',
|
||
'/blog/hulunbuir-family-travel-guide',
|
||
'/blog/hulunbuir-best-month-to-visit',
|
||
'/blog/hulunbuir-self-drive-vs-chartered-bus',
|
||
'/blog/hulunbuir-travel-cost-breakdown',
|
||
'/blog/hulunbuir-travel-with-toddlers-4-6',
|
||
'/blog/hulunbuir-travel-tips-avoid-pitfalls',
|
||
'/blog/grassland-photography-outfit-guide',
|
||
],
|
||
},
|
||
},
|
||
|
||
css: ['~/assets/less/global.less'],
|
||
|
||
vite: {
|
||
css: {
|
||
preprocessorOptions: {
|
||
less: {
|
||
additionalData: `@import "~/assets/less/variables.less"; @import "~/assets/less/mixins.less";`,
|
||
},
|
||
},
|
||
},
|
||
},
|
||
|
||
app: {
|
||
head: {
|
||
htmlAttrs: { lang: 'zh-CN' },
|
||
charset: 'utf-8',
|
||
viewport: 'width=device-width, initial-scale=1',
|
||
link: [
|
||
{ rel: 'icon', href: '/favicon.ico' },
|
||
{ rel: 'apple-touch-icon', href: '/images/logo-square.png' },
|
||
{ rel: 'dns-prefetch', href: 'https://beian.miit.gov.cn' },
|
||
],
|
||
meta: [
|
||
{ name: 'applicable-device', content: 'pc,mobile' },
|
||
{ 'http-equiv': 'Cache-Control', content: 'no-transform' },
|
||
// 内容语言
|
||
{ 'http-equiv': 'content-language', content: 'zh-CN' },
|
||
// 品牌全局声明 - AI 大模型采集时的全局上下文
|
||
{ name: 'application-name', content: '呼籁旅行' },
|
||
{ name: 'theme-color', content: '#3a7d44' },
|
||
// 允许 AI 索引
|
||
{ name: 'robots', content: 'index, follow, max-snippet:-1, max-image-preview:large' },
|
||
],
|
||
},
|
||
},
|
||
|
||
compatibilityDate: '2025-03-18',
|
||
})
|