forked from mns/mini-skamja
65 lines
1.2 KiB
TypeScript
65 lines
1.2 KiB
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
|
|
export default defineNuxtConfig({
|
|
devtools: { enabled: false },
|
|
hooks: {},
|
|
|
|
app: {
|
|
pageTransition: { name: 'page', mode: 'out-in' },
|
|
head: {
|
|
viewport: 'width=device-width, initial-scale=1',
|
|
htmlAttrs: {
|
|
lang: 'ru',
|
|
},
|
|
link: [
|
|
{ rel: 'icon', type: 'image/svg+xml', href: '/mdi--bench-back.svg' },
|
|
]
|
|
},
|
|
},
|
|
|
|
ssr: true,
|
|
|
|
modules: [
|
|
'@nuxtjs/tailwindcss',
|
|
"@nuxt/image",
|
|
"nuxt-icon",
|
|
"nuxt-svgo",
|
|
'@tresjs/nuxt',
|
|
'@nuxtjs/robots',
|
|
'@artmizu/yandex-metrika-nuxt',
|
|
],
|
|
|
|
runtimeConfig: {
|
|
public: {
|
|
apiPrefix: 'sk',
|
|
apiBase: process.env.mode == 'DEVELOPMENT' ? "http://mns.dev.kustarshina.ru/kp" : "https://mns.kustarshina.ru/kp",
|
|
imgBase: 'https://mns.kustarshina.ru',
|
|
baseUrl: '',
|
|
yandexMetrika: {
|
|
id: 0
|
|
},
|
|
}
|
|
},
|
|
|
|
routeRules: {
|
|
'/index.html': { redirect: '/' },
|
|
'/index.php': { redirect: '/' },
|
|
},
|
|
|
|
nitro: {
|
|
prerender: {
|
|
crawlLinks: false
|
|
},
|
|
},
|
|
|
|
vite: {
|
|
assetsInclude: ['**/*.glb', '**/*.gltf'],
|
|
build: {
|
|
target: 'esnext',
|
|
},
|
|
},
|
|
|
|
site: { indexable: false },
|
|
|
|
compatibilityDate: '2025-03-12'
|
|
}) |