-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
52 lines (51 loc) · 1.42 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
import { defineNuxtConfig } from "nuxt";
import eslintPlugin from "vite-plugin-eslint";
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
export default defineNuxtConfig({
vite: {
plugins: [eslintPlugin()],
},
nitro: {
preset: "server",
},
meta: {},
build: {
postcss: {
postcssOptions: {
plugins: {
autoprefixer: {},
},
},
},
},
buildModules: ["@intlify/nuxt3"],
privateRuntimeConfig: {
enviroment: process.env.NODE_ENV,
jwt: {
secret: process.env.JWT_SECRET,
expires: process.env.JWT_EXPIRES,
refreshSecret: process.env.JWT_REFRESH_SECRET,
refreshExpires: process.env.JWT_REFRESH_EXPIRES,
},
mongodb: {
url: process.env.DATABASE_URL,
options: {
user: process.env.MONGO_INITDB_ROOT_USERNAME,
pass: process.env.MONGO_INITDB_ROOT_PASSWORD,
},
},
redis: {
url: process.env.REDIS_URL,
},
},
publicRuntimeConfig: {
VITE_DOMAIN_NAME: process.env.VITE_DOMAIN_NAME,
VITE_SUBDOMAINS: [
{ name: "index", path: `//${process.env.VITE_DOMAIN_NAME}` },
{ name: "career", path: `//career.${process.env.VITE_DOMAIN_NAME}` },
{ name: "musong", path: `//musong.${process.env.VITE_DOMAIN_NAME}` },
{ name: "imaging", path: `//imaging.${process.env.VITE_DOMAIN_NAME}` },
{ name: "webgl", path: `//webgl.${process.env.VITE_DOMAIN_NAME}` },
],
},
});