-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
90 lines (86 loc) · 2.29 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
"nuxt-icon",
"@nuxt/content",
"@nuxt/image",
"@vee-validate/nuxt",
"nuxt-simple-robots",
"@sidebase/nuxt-auth",
"@nuxtjs/tailwindcss",
"nuxt-simple-sitemap",
],
runtimeConfig: {
DATABASE_URI_DEV: process.env.DATABASE_URI_DEV,
DATABASE_URI_PROD: process.env.DATABASE_URI_PROD,
REFERRAL_ID_BYTES: process.env.REFERRAL_ID_BYTES,
PWD_SALT: process.env.PWD_SALT,
SENDER_EMAIL_ID: process.env.SENDER_EMAIL_ID,
SENDER_EMAIL_PWD: process.env.SENDER_EMAIL_PWD,
AUTH_SECRET: process.env.NEXTAUTH_SECRET,
STATE_SECRET: process.env.STATE_SECRET,
DB_STATE_SECRET: process.env.DB_STATE_SECRET,
HRESS_SERVICE_SECRET: process.env.HRESS_SERVICE_SECRET,
HRESS_SERVICE_DOMAIN: process.env.HRESS_SERVICE_DOMAIN,
PWD_RESET_JWT_SECRET: process.env.PWD_RESET_JWT_SECRET,
PWD_RESET_CRYPTO_SECRET: process.env.PWD_RESET_CRYPTO_SECRET,
indexable: true,
public: {
siteUrl: process.env.HRESS_BASE_URL,
},
},
image: {
domains: ["api.dicebear.com", "img.freepik.com", "st4.depositphotos.com"],
},
telemetry: {
enabled: false,
},
nitro: {
plugins: ["./db/index.js"],
},
veeValidate: {
autoImports: true,
componentNames: {
Form: "VForm",
Field: "VField",
ErrorMessage: "VErrorMessage",
},
},
auth: {
origin:
process.env.NODE_ENV === "development"
? process.env.AUTH_ORIGIN_DEV
: process.env.AUTH_ORIGIN_PROD,
isEnabled: true,
defaultProvider: "credentials",
enableGlobalAppMiddleware: false,
},
app: {
head: {
title: "Hress",
htmlAttrs: { lang: "en", dir: "ltr" },
meta: [
{
name: "content-language",
content: "en",
},
{
name: "viewport",
content: "width=device-width, initial-scale=1, user-scalable=no",
},
],
},
},
routeRules: {
"/": { prerender: true },
"/plan": { prerender: true },
"/terms": { prerender: true },
"/privacy": { prerender: true },
"/cookie-policy": { prerender: true },
// "/account/**": { ssr: true },
// "/admin/**": { ssr: true },
},
robots: {
disallow: ["/api", "/account", "/admin"],
},
});