-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
41 lines (36 loc) · 997 Bytes
/
nuxt.config.js
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
// Everything in this file has been stripped down to only have the requirements of how forms are implemented.
export default defineNuxtConfig({
devtools: { enabled: true },
nitro: {
prerender: {
crawlLinks: true,
ignore: ["/live-preview", "/live-preview/**"],
},
routeRules: {
"/live-preview": { ssr: false },
"/live-preview/**": { ssr: false },
},
},
modules: ["@nuxtjs/tailwindcss", "@vueuse/nuxt"],
tailwindcss: {
viewer: false,
},
components: {
dirs: [
// IMPORTANT: You need to make your input components global in order to
// be able to dynamically use them without having to manually import them.
{
path: "~/components/form/inputs",
global: true,
},
"~/components",
],
},
runtimeConfig: {
public: {
craftUrl: process.env.API_BASE_URL + "/graphql" || "",
gqlToken: process.env.GQL_TOKEN || "",
livePreviewParam: "has-live-preview",
},
},
});