-
Notifications
You must be signed in to change notification settings - Fork 4
/
nuxt.config.ts
80 lines (68 loc) · 1.73 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
import Aura from "@primevue/themes/aura";
export default defineNuxtConfig({
compatibilityDate: "2024-08-09",
typescript: {
typeCheck: true,
},
devtools: {
enabled: true,
},
modules: [
"@nuxt/image",
"@nuxtjs/tailwindcss",
"@primevue/nuxt-module",
"@sidebase/nuxt-auth",
"nuxt-posthog",
],
// 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,
// 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: "",
authOrigin: "",
auth0: {
issuer: "",
clientId: "",
clientSecret: "",
},
// Configurations inside the `public` object are available to the client.
// Eg. in the browser
public: {
posthog: {
host: "",
publicKey: "",
},
},
},
});