-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
45 lines (45 loc) · 1.26 KB
/
nuxt.config.js
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
export default defineNuxtConfig({
compatibilityDate: "2024-12-12",
css: ["@/assets/styles/global.scss"],
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: '@use "@/assets/styles/variables.scss" as *;',
api: "modern-compiler",
},
},
},
},
nitro: {
compressPublicAssets: true,
},
modules: ["@nuxtjs/i18n", "@nuxt/image", "@nuxtjs/seo", "nuxt-mongoose", "nuxt-nodemailer"],
i18n: {
locales: ["en", "pl", "pt"],
defaultLocale: "en",
vueI18n: "./i18n.config.js",
skipSettingLocaleOnNavigate: true,
baseUrl: process.env.NUXT_ORIGIN,
},
site: {
url: process.env.NUXT_ORIGIN,
},
mongoose: {
uri: process.env.NUXT_MONGODB_URI,
},
nodemailer: {
from: "Daniel Ladeira <[email protected]>",
host: process.env.NUXT_SMTP_HOST,
port: process.env.NUXT_SMTP_PORT,
secure: true,
auth: {
user: process.env.NUXT_SMTP_USER,
pass: process.env.NUXT_SMTP_PASS,
},
},
runtimeConfig: {
ORIGIN: process.env.NUXT_ORIGIN,
MESSAGE_EMAIL: process.env.NUXT_MESSAGE_EMAIL,
},
})