-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.ts
37 lines (36 loc) · 880 Bytes
/
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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: {
enabled: true,
timeline: {
enabled: true
}
},
modules: ['@formkit/nuxt', '@nuxtjs/tailwindcss', ['@pinia/nuxt', {
autoImports: [
'acceptHMRUpdate',
'defineStore',
['defineStore', 'definePiniaStore']
]
}]],
imports: {
dirs: ['stores']
},
runtimeConfig: {
MONGO_URI: process.env.MONGO_URI,
TOKEN_SECRET: process.env.TOKEN_SECRET,
ACCESS_TOKEN: process.env.ACCESS_TOKEN,
ELASTIC_API: process.env.ELASTIC_API,
APP_URL: process.env.APP_URL,
EMAIL: process.env.EMAIL,
public: {
ELASTIC_URL: 'https://api.elasticemail.com/v4'
}
},
alias: {
pinia: '/node_modules/@pinia/nuxt/node_modules/pinia/dist/pinia.mjs'
},
nitro: {
plugins: ['~/server/plugins/mongoDB.ts']
}
})