-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnuxt.config.ts
71 lines (71 loc) · 1.69 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: "2024-04-03",
devtools: { enabled: true },
modules: [
"@nuxtjs/tailwindcss",
"shadcn-nuxt",
"@nuxtjs/google-fonts",
"@nuxt/image",
"@nuxt/icon",
"@nuxtjs/color-mode",
"nuxt-og-image",
"@pinia/nuxt",
"@pinia-plugin-persistedstate/nuxt",
"@nuxtjs/svg-sprite",
],
shadcn: {
/**
* Prefix for all the imported component
*/
prefix: "",
/**
* Directory that the component lives in.
* @default "./components/ui"
*/
componentDir: "./components/ui",
},
googleFonts: {
families: {
Raleway: {
wght: [100, 400],
ital: [100],
},
},
},
image: {
quality: 80,
format: ["webp"],
},
colorMode: {
preference: "system", // default value of $colorMode.preference
fallback: "light", // fallback value if not system preference found
hid: "nuxt-color-mode-script",
globalName: "__NUXT_COLOR_MODE__",
componentName: "ColorScheme",
classPrefix: "",
classSuffix: "",
storageKey: "nuxt-color-mode-admin",
},
site: {
// production URL
url: process.env.BASE_URL,
},
pinia: {
storesDirs: ["./stores/**"],
},
piniaPersistedstate: {
cookieOptions: {
sameSite: "strict",
},
},
runtimeConfig: {
public: {
googleClientId: process.env.OAUTH_GOOGLE_CLIENT_ID,
googleClientSecret: process.env.OAUTH_GOOGLE_CLIENT_SECRET,
googleRedirectURI: process.env.OAUTH_GOOGLE_REDIRECT_URI,
githubClientId: process.env.OAUTH_GITHUB_CLIENT_ID,
githubClientSecret: process.env.OAUTH_GITHUB_CLIENT_SECRET,
},
},
});