-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnuxt.config.ts
85 lines (81 loc) · 2.28 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
import app from "./config/app";
import Aura from "@primevue/themes/aura";
import pkg from "./package.json";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
srcDir: "src",
primevue: {
options: {
theme: {
preset: Aura,
},
unstyled: false,
// preset: Aura,
// theme: Aura,
ripple: true,
inputVariant: "outlined",
},
components: {
prefix: "P",
},
},
runtimeConfig: {
oauth: {
todoist: {
clientId: process.env.CLIENT_ID,
clientSecret: process.env.CLIENT_SECRET,
scope: "data:read_write",
},
},
public: {
storeCountKey: "task-done-count",
storeFeedbackModalShow: "feedback-modal-shown",
version: pkg.version,
},
},
gtm: {
enabled: !!process.env.GTM_ID,
id: process.env.GTM_ID ?? "GTM-XXXXXX",
},
app: {
head: {
title: app.title,
meta: [
{ name: "description", content: app.description },
{ name: "viewport", content: "width=device-width, initial-scale=1.0" },
{ name: "robots", content: "index, follow" },
{ property: "og:title", content: app.title },
{ property: "og:url", content: app.baseUrl },
{ property: "og:description", content: app.description },
{ property: "og:image", content: app.imagePath },
{ name: "twitter:title", content: app.title },
{ name: "twitter:description", content: app.description },
{ name: "twitter:card", content: "summary_large_image" },
{ name: "twitter:image", content: app.imagePath },
{ name: "twitter:site", content: "@selfire1" },
],
link: [
{ rel: "apple-touch-icon", href: "/apple-touch-icon.png" },
{ rel: "icon", href: "/favicon.ico", sizes: "48x48" },
{
rel: "icon",
href: "/favicon.svg",
sizes: "any",
type: "image/svg+xml",
},
{ rel: "manifest", href: "/site.webmanifest" },
{ rel: "canonical", href: app.baseUrl },
],
},
},
modules: [
"@primevue/nuxt-module",
"@nuxt/image",
"nuxt-auth-utils",
"@zadigetvoltaire/nuxt-gtm",
"@nuxtjs/tailwindcss",
"@nuxt/test-utils/module",
"@nuxt/icon",
],
});