-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.js
More file actions
66 lines (64 loc) · 2.28 KB
/
nuxt.config.js
File metadata and controls
66 lines (64 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
export default defineNuxtConfig({
devtools: { enabled: process.env.DEVTOOLS ?? false },
buildModules: ['nuxt-compress'],
plugins: ['~/plugins/google-recaptcha.js'],
modules: [
'@nuxtjs/tailwindcss',
'@nuxtjs/color-mode',
'@nuxtjs/robots',
'@nuxtjs/i18n',
'nuxt-mdi',
],
colorMode: {
dataValue: 'theme', // activate data-theme in <html> tag
preference: 'nunnadark' // default theme
},
runtimeConfig: {
public: {
RECAPTCHA_SITE_KEY: process.env.RECAPTCHA_SITE_KEY,
API_FORM_URL: process.env.API_FORM_URL
}
},
i18n: {
locales: [
{ code: 'mx', iso: 'es-MX', file: 'mx.json' },
{ code: 'us', iso: 'en-US', file: 'us.json' }
],
defaultLocale: 'mx',
langDir: 'locales/',
lazy: true
},
app: {
head: {
title: 'Nunna Tech',
htmlAttrs: {
lang: 'es'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Nunna Tech Desarrolladora de Software' },
{ hid: 'keywords', name: 'keywords', content: 'Software, Aplicaciones, Web' },
{ hid: 'author', name: 'author', content: 'Nunna Tech' },
{ hid: 'og:title', property: 'og:title', content: 'Nunna Tech' },
{ hid: 'og:description', property: 'og:description', content: 'Nunna Tech Desarrolladora de Software' },
{ hid: 'og:image', property: 'og:image', content: 'https://avatars.githubusercontent.com/u/92613716' },
],
script: [
{
async: true,
src: 'https://www.googletagmanager.com/gtag/js?id=G-E140WWZESC'
},
{
hid: 'ga-script',
innerHTML: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-E140WWZESC');
`
}
]
},
},
});