-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
41 lines (40 loc) · 1 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
import { resolve } from "node:path";
export default defineNuxtConfig({
alias: {
cookie: resolve(__dirname, "node_modules/cookie"),
},
devtools: { enabled: true },
modules: ["@nuxtjs/tailwindcss", "@nuxt/image", "@hebilicious/authjs-nuxt"],
nitro: {
preset: "vercel-edge",
},
runtimeConfig: {
webhooks: {
contact: process.env.WEBHOOK_CONTACT,
},
authJs: {
secret: process.env.AUTH_SECRET,
},
google: {
clientId: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
},
twitter: {
clientId: process.env.TWITTER_CLIENT_ID,
clientSecret: process.env.TWITTER_CLIENT_SECRET,
},
github: {
clientId: process.env.GITHUB_CLIENT_ID,
clientSecret: process.env.GITHUB_CLIENT_SECRET,
},
},
authJs: {
verifyClientOnEveryRequest: true,
guestRedirectTo: "/auth",
authenticatedRedirectTo: "/dashboard",
baseUrl: "http://localhost:3000",
},
image: {
format: ["avif", "webp"],
},
});