-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
101 lines (101 loc) · 2.18 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
const path = require('path');
export default defineNuxtConfig({
app: {
head: {
title: 'Chatty App',
htmlAttrs: {
lang: 'en',
},
meta: [{ name: 'description', content: 'Chatty app amazing' }],
link: [
{
rel: 'icon',
type: 'image/x-icon',
href: '/chat.ico',
sizes: '180x180',
},
{
rel: "firebase" ,
href: "https://firestore.googleapis.com"
},
{
rel: "googleapis" ,
href: "https://identitytoolkit.googleapis.com"
},
],
},
},
vite: {
build: {
chunkSizeWarningLimit: 1600,
minify: 'terser',
cssMinify: true,
manifest: true,
},
},
components: [
{
path: '~/components',
pathPrefix: false,
},
],
devServer: {
port: 1102,
},
devtools: { enabled: false },
css: [
'vuetify/lib/styles/main.sass',
'@mdi/font/css/materialdesignicons.min.css',
'~/assets/scss/main.scss',
],
build: {
transpile: ['vuetify'],
},
modules: [
'@pinia/nuxt',
'@pinia-plugin-persistedstate/nuxt',
'@nuxtjs/robots',
"nuxt-lodash"
],
lodash: {
prefix: "_",
prefixSkip: ["string"],
upperAfterPrefix: false,
exclude: ["map"],
alias: [
["camelCase", "stringToCamelCase"],
["kebabCase", "stringToKebab"],
["isDate", "isLodashDate"],
],
},
piniaPersistedstate: {
cookieOptions: {
sameSite: 'strict',
},
storage: 'localStorage',
},
nitro: {
output: {
publicDir: path.join(__dirname, 'build'),
},
},
ssr: false,
runtimeConfig: {
public: {
firebaseConfig: {
apiKey: process.env.API_KEY,
authDomain: process.env.AUTH_DOMAIN,
projectId: process.env.PROJECT_ID,
storageBucket: process.env.STORAGE_BUCKET,
messagingSenderId: process.env.MESSAGING_SENDER_ID,
appId: process.env.APP_ID,
measurementId: process.env.MEASUREMENT_ID,
},
cloudinaryConfig: {
apiKey: process.env.CLOUD_API_KEY,
cloudName: process.env.CLOUD_NAME,
uploadPreset: process.env.UPLOAD_PRESET,
},
},
},
});