-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
80 lines (80 loc) · 2.46 KB
/
nuxt.config.ts
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// https://nuxt.com/docs/api/configuration/nuxt-config
import eslintPlugin from 'vite-plugin-eslint'
export default defineNuxtConfig({
devtools: { enabled: true },
// @ts-ignore
vite: {
plugins: [eslintPlugin()]
},
runtimeConfig: {
public: {
FIREBASE_API_KEY: process.env.FIREBASE_API_KEY,
FIREBASE_APP_ID: process.env.FIREBASE_APP_ID,
FIREBASE_AUTH_DOMAIN: process.env.FIREBASE_AUTH_DOMAIN,
FIREBASE_MEASUREMENT_ID: process.env.FIREBASE_MEASUREMENT_ID,
FIREBASE_MESSAGING_SENDER_ID: process.env.FIREBASE_MESSAGING_SENDER_ID,
FIREBASE_PROJECT_ID: process.env.FIREBASE_PROJECT_ID,
FIREBASE_STORAGE_BUCKET: process.env.FIREBASE_STORAGE_BUCKET,
GOOGLE_API_CLIENT_ID: process.env.GOOGLE_API_CLIENT_ID,
GOOGLE_API_KEY: process.env.GOOGLE_API_CLIENT_ID
}
},
app: {
head: {
title: 'Toutils',
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
meta: [
{ name: 'description', content: 'Toutils provee un conjunto de herramientas para la vida cotidiana' },
{ name: 'keywords', content: 'herramientas, vida, ayuda, finanzas, productividad, economia, tareas' },
{ name: 'robots', content: 'index,follow' }
],
script: [
// { src: 'https://apis.google.com/js/api.js', defer: true, async: true },
// { src: 'https://accounts.google.com/gsi/client', defer: true, async: true }
]
}
},
css: ['~/assets/css/main.css'],
modules: [
'@pinia/nuxt',
'@nuxtjs/eslint-module',
'@nuxtjs/tailwindcss',
'@vueuse/nuxt',
'@nuxtjs/web-vitals',
'@vite-pwa/nuxt'
],
components: [
'~/components/global/'
],
pwa: {
mode: process.env.NODE_ENV === 'development' ? 'development' : 'production',
manifest: {
name: 'Toutils',
short_name: 'Toutils',
description: 'Herramientas estilo de vida',
icons: [{ src: '/android-chrome-192x192.png', sizes: '192x192', type: 'image/png' }, { src: '/android-chrome-512x512.png', sizes: '512x512', type: 'image/png' }],
theme_color: '#ffffff',
background_color: '#ffffff',
display: 'standalone'
},
workbox: {
navigateFallback: '/'
},
devOptions: {
enabled: false,
type: 'module'
}
},
webVitals: {
// provider: 'log',
debug: true, // debug enable metrics reporting on dev environments
disabled: false
},
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
}
})