forked from meyer1994/nuxtauth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
122 lines (105 loc) · 3.03 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
import Aura from "@primevue/themes/aura";
export default defineNuxtConfig({
compatibilityDate: "2024-08-09",
typescript: {
typeCheck: true,
},
devtools: {
enabled: true,
},
scripts: {
registry: {
stripe: true,
}
},
modules: [
"@nuxt/image",
"@nuxtjs/tailwindcss",
"@primevue/nuxt-module",
"@sidebase/nuxt-auth",
"nuxt-posthog",
"@vueuse/nuxt",
"@nuxt/scripts",
],
// https://tailwind.primevue.org/nuxt/
// https://github.com/primefaces/primevue-examples/blob/main/nuxt-styled-tailwind/nuxt.config.ts
primevue: {
options: {
theme: {
preset: Aura,
},
},
},
// Files added here are included in all pages. We want to add the PrimeIcons
// CSS
//
// https://nuxt.com/docs/api/nuxt-config#css
// https://github.com/primefaces/primeicons
// https://primevue.org/icons/
css: ["primeicons/primeicons.css"],
auth: {
// This makes all pages private by default. If you want to make a page
// public, you can use `definePageMeta({ auth: false })` on the page `setup`
//
// https://auth.sidebase.io/guide/application-side/configuration#globalappmiddleware
globalAppMiddleware: true,
// We can change this depending on the provider we deploy to. Most have
// an environment variable that contains the URL
// originEnvKey: "AUTH_ORIGIN",
// https://auth.sidebase.io/guide/authjs/quick-start#configuration
provider: {
type: "authjs",
trustHost: false,
defaultProvider: "auth0",
addDefaultCallbackUrl: "/",
},
},
// Configurations from here should be overriden by using `.env` or environment
// variables. Check `.env.example` for documentation on each of those values
//
// https://nuxt.com/docs/guide/going-further/runtime-config
runtimeConfig: {
secret: "",
postgresUrl: "",
supabase: {
url: "",
key: "",
bucket: ""
},
auth0: {
issuer: "",
clientId: "",
clientSecret: "",
},
replicate: {
username: "",
apiToken: "",
model: "",
version: "",
webhookSecret: "",
webhookUrl: "",
webhookUrlTrainings: "",
},
stripe: {
priceId: "",
imageCreditsPerCheckout: 100,
trainingCreditsPerCheckout: 1,
secretKey: "",
webhookSecret: "",
successUrl: "",
},
// Configurations inside the `public` object are available to the client.
// Eg. in the browser
public: {
posthog: {
// Uncomment this to disable PostHog
disabled: true,
},
},
},
nitro: {
experimental: {
openAPI: true,
},
},
});