-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
128 lines (111 loc) · 2.88 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
import { defineNuxtConfig } from "nuxt/config";
const getSiteUrl = () => {
if (process.env.VERCEL_ENV === "development") {
return "https://app.d.hemocione.com.br";
}
if (process.env.VERCEL_ENV === "preview") {
return `https://${process.env.VERCEL_URL}`;
}
if (process.env.VERCEL_ENV === undefined) {
return "http://localhost:3000";
}
return "https://app.hemocione.com.br";
};
export default defineNuxtConfig({
runtimeConfig: {
public: {
oneSignalAppId: process.env.NUXT_ONE_SIGNAL_APP_ID,
cookieDomain: process.env.NUXT_COOKIE_DOMAIN || "hemocione.com.br",
hemocioneIdApiUrl:
process.env.NUXT_HEMOCIONE_ID_API_URL ||
"https://hemocione-id-dev.cpt.hemocione.com.br",
hemocioneIdUrl:
process.env.NUXT_HEMOCIONE_ID_URL || "https://id.d.hemocione.com.br",
authLocalKey: process.env.NUXT_AUTH_LOCAL_KEY || "devHemocioneId",
userDataLocalKey: "userData",
siteUrl: getSiteUrl(),
eventsUrl:
process.env.NUXT_EVENTS_URL || "https://eventos.hemocione.com.br",
competitionsUrl:
process.env.NUXT_COMPETITIONS_URL || "https://copa.hemocione.com.br",
},
},
ssr: false,
css: [
"assets/css/globals.css",
"assets/css/transitions.css",
"assets/css/animations.css",
],
modules: [
"@nuxtjs/google-fonts",
"@element-plus/nuxt",
"@pinia/nuxt",
"nuxt-vercel-analytics",
"@zadigetvoltaire/nuxt-well-known",
],
googleFonts: {
families: {
Lato: [100, 300, 400, 700, 900],
},
},
app: {
pageTransition: { name: "blur", mode: "out-in", appear: true },
},
devtools: {
enabled: true,
timeline: {
enabled: true,
},
},
nitro: {
preset: "vercel",
},
future: {
typescriptBundlerResolution: true,
},
experimental: {
payloadExtraction: true,
watcher: "parcel",
},
imports: {
autoImport: true,
},
appConfig: {
// you don't need to include this: only for testing purposes
buildDate: new Date().toISOString(),
},
wellKnown: {
devtools: true,
contentUris: [
{
path: "apple-app-site-association",
content: JSON.stringify({
applinks: {
apps: [],
details: [
{
appID: "JGY96PPKZK.br.com.hemocione.app",
paths: ["*"],
},
],
},
}),
},
{
path: "assetlinks.json",
content: JSON.stringify([
{
relation: ["delegate_permission/common.handle_all_urls"],
target: {
namespace: "android_app",
package_name: "br.com.hemocione.app",
sha256_cert_fingerprints: [
"C3:04:BD:47:17:D4:29:76:D1:6D:CC:F1:FC:F3:99:A1:40:04:AA:DE:41:A7:A0:53:7F:20:65:1A:29:8C:16:1D",
],
},
},
]),
},
],
},
});