init
This commit is contained in:
55
nuxt.config.ts
Normal file
55
nuxt.config.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
import { createResolver } from '@nuxt/kit'
|
||||
|
||||
const { resolve } = createResolver(import.meta.url)
|
||||
|
||||
export default defineNuxtConfig({
|
||||
ssr: true,
|
||||
compatibilityDate: '2025-05-15',
|
||||
devtools: { enabled: true },
|
||||
modules: [
|
||||
'@nuxt/ui',
|
||||
'@nuxt/image',
|
||||
'@nuxt/icon',
|
||||
'@nuxt/fonts',
|
||||
'@nuxtjs/i18n',
|
||||
[
|
||||
'@vee-validate/nuxt',
|
||||
{
|
||||
autoImports: true,
|
||||
},
|
||||
],
|
||||
],
|
||||
css: ['~/assets/css/main.css', '~/assets/scss/main.scss'],
|
||||
i18n: {
|
||||
locales: [
|
||||
{ code: 'en', name: 'English', file: 'en.json' },
|
||||
{ code: 'ru', name: 'Русский', file: 'ru.json' },
|
||||
],
|
||||
defaultLocale: 'ru',
|
||||
strategy: 'prefix_except_default',
|
||||
detectBrowserLanguage: false,
|
||||
},
|
||||
app: {
|
||||
head: {
|
||||
meta: [
|
||||
{
|
||||
name: 'viewport',
|
||||
content: 'width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover, user-scalable=no',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
vite: {
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
additionalData: `@use "${resolve('./assets/scss/mixins')}" as *;`,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fonts: {
|
||||
provider: 'google',
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user