Skip to content

Commit

Permalink
nuxt config added buildId
Browse files Browse the repository at this point in the history
  • Loading branch information
Maryanushka committed Jan 2, 2025
1 parent da306b6 commit 271d66d
Showing 1 changed file with 108 additions and 107 deletions.
215 changes: 108 additions & 107 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,125 +1,126 @@
import { defineNuxtConfig } from 'nuxt/config'

export default defineNuxtConfig({
srcDir: 'src',
css: ["@/assets/css/app.scss"],
srcDir: 'src',
css: ["@/assets/css/app.scss"],

typescript: {
strict: true,
typeCheck: false,
shim: false
},
typescript: {
strict: true,
typeCheck: false,
shim: false
},

components: {
"dirs": [
{ "path": "~/components", "global": true },
],
},
components: {
"dirs": [
{ "path": "~/components", "global": true },
],
},

app: {
pageTransition: { name: 'page', mode: 'out-in' },
head: {
link: [{ rel: 'icon', type: 'image/png', href: '/favicon.png' }]
}
},
app: {
pageTransition: { name: 'page', mode: 'out-in' },
head: {
link: [{ rel: 'icon', type: 'image/png', href: '/favicon.png' }]
}
},

modules: [
'@nuxtjs/sanity',
'@pinia/nuxt',
'@nuxtjs/i18n',
'nuxt-icon',
// '@nuxtjs/google-analytics',
'nuxt-gtag',
// '~/modules/purge-comments'
// '~/modules/style-inlining',
],
modules: [
'@nuxtjs/sanity',
'@pinia/nuxt',
'@nuxtjs/i18n',
'nuxt-icon',
// '@nuxtjs/google-analytics',
'nuxt-gtag',
// '~/modules/purge-comments'
// '~/modules/style-inlining',
],

i18n: {
locales: [
{
code: 'ua',
name: 'Ukrainian',
},
{
code: 'en',
name: 'English',
}
],
defaultLocale: 'ua',
strategy: 'prefix_except_default',
// lazy: true,
// langDir: 'locales/',
vueI18n: {
legacy: false,
locale: 'ua',
fallbackLocale: 'ua',
availableLocales: ['ua', 'en',],
messages: {
en: {
toHome: 'To Home',
emailCopied: 'email copied',
callme: 'Call me',
iban: 'Iban',
payment: 'Payment',
},
ua: {
toHome: 'На головну',
emailCopied: 'адресу скопійовано',
callme: 'Передзвоніть мені',
iban: 'Сплата по IBAN',
payment: 'Накладений платіж',
},
}
}
i18n: {
locales: [
{
code: 'ua',
name: 'Ukrainian',
},
{
code: 'en',
name: 'English',
}
],
defaultLocale: 'ua',
strategy: 'prefix_except_default',
// lazy: true,
// langDir: 'locales/',
vueI18n: {
legacy: false,
locale: 'ua',
fallbackLocale: 'ua',
availableLocales: ['ua', 'en',],
messages: {
en: {
toHome: 'To Home',
emailCopied: 'email copied',
callme: 'Call me',
iban: 'Iban',
payment: 'Payment',
},

sanity: {
projectId: 'okruw9dl',
dataset: 'production',
minimal: true,
apiVersion: '2023-01-01'
ua: {
toHome: 'На головну',
emailCopied: 'адресу скопійовано',
callme: 'Передзвоніть мені',
iban: 'Сплата по IBAN',
payment: 'Накладений платіж',
},
}
}
},

// ssr: false,
sanity: {
projectId: 'okruw9dl',
dataset: 'production',
minimal: true,
apiVersion: '2023-01-01'
},

nitro: {
prerender: {
crawlLinks: true,
routes: ['/sitemap.xml']
}
},
// ssr: false,

runtimeConfig: {
public: {
mono: process.env.NUXT_MONO, // can be overridden by NUXT_API_SECRET environment variable
novaposhta: process.env.NUXT_NOVAPOSHTA,
npEndpoint: 'https://api.novaposhta.ua/v2.0/json/',
monoEnpoint: 'https://api.monobank.ua/api/merchant/invoice/',
sendGrid: process.env.NUXT_SENDGRID_API_KEY,
crmkey: process.env.NUXT_CRM,
crmEndpoint: 'https://api.keepincrm.com/v1/',
domain: process.env.NUXT_DOMAIN,
gtagId: 'G-WN7B494RN5',
}
},
nitro: {
prerender: {
crawlLinks: true,
routes: ['/sitemap.xml']
}
},

vite: {
logLevel: 'info',
css: {
preprocessorOptions: {
scss: {
additionalData: '@import "@/assets/css/colors.scss";',
},
},
},
},
runtimeConfig: {
public: {
mono: process.env.NUXT_MONO, // can be overridden by NUXT_API_SECRET environment variable
novaposhta: process.env.NUXT_NOVAPOSHTA,
npEndpoint: 'https://api.novaposhta.ua/v2.0/json/',
monoEnpoint: 'https://api.monobank.ua/api/merchant/invoice/',
sendGrid: process.env.NUXT_SENDGRID_API_KEY,
crmkey: process.env.NUXT_CRM,
crmEndpoint: 'https://api.keepincrm.com/v1/',
domain: process.env.NUXT_DOMAIN,
gtagId: 'G-WN7B494RN5',
}
},

// googleAnalytics: {
// id: 'GTM-K49KX72B'
// }
gtag: {
id: 'G-WN7B494RN5',
vite: {
logLevel: 'info',
css: {
preprocessorOptions: {
scss: {
additionalData: '@import "@/assets/css/colors.scss";',
},
},
},
},
buildId: "f821a3c1-36b1-497c-9729-024dda51b42b",

// googleAnalytics: {
// id: 'GTM-K49KX72B'
// }
gtag: {
id: 'G-WN7B494RN5',
},

compatibilityDate: '2024-12-14',
compatibilityDate: '2024-12-14',
})

0 comments on commit 271d66d

Please sign in to comment.