-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnuxt.config.ts
48 lines (47 loc) · 1.05 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
import { resolve } from "node:path"
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
"@hebilicious/authjs-nuxt",
"@nuxtjs/fontaine",
"@nuxtjs/google-fonts",
"@nuxt/ui",
],
runtimeConfig: {
authJs: {
secret: process.env.NEXTAUTH_SECRET,
},
github: {
clientId: process.env.GITHUB_CLIENT_ID,
clientSecret: process.env.GITHUB_CLIENT_SECRET,
},
public: {
authJs: {
baseUrl: process.env.NEXTAUTH_URL,
verifyClientOnEveryRequest: true,
},
},
},
alias: {
cookie: resolve(__dirname, "node_modules/cookie"),
},
ui: {
icons: ["heroicons", "mdi"],
safelistColors: ["indigo", "green", "red", "orange"],
},
css: ["~/assets/css/font.css", "~/assets/css/tailwind.css"],
fontMetrics: {
fonts: ["DM Sans"],
},
googleFonts: {
display: "swap",
download: true,
families: {
"DM+Sans": [400, 500, 600, 700],
},
},
nitro: {
preset: "cloudflare-pages",
},
})