-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
59 lines (56 loc) · 1.35 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
colorMode: {
preference: "light",
fallback: "light",
},
modules: ["@nuxt/ui", "@pinia/nuxt", "nuxt-graphql-request"],
typescript: {
typeCheck: true,
strict: true,
},
build: {
transpile: ["nuxt-graphql-request"],
},
graphql: {
/**
* An Object of your GraphQL clients
*/
clients: {
default: {
/**
* The client endpoint url
*/
endpoint: "your end point url",
/**
* Per-client options overrides
* See: https://github.com/prisma-labs/graphql-request#passing-more-options-to-fetch
*/
options: {},
},
// ...your other clients
},
/**
* Options
* See: https://github.com/prisma-labs/graphql-request#passing-more-options-to-fetch
*/
options: {
method: "get", // Default to `POST`
// if auth with HTTP header
headers: {
authorization: "Bearer MY_TOKEN",
},
},
/**
* Optional
* default: true (this includes cross-fetch/polyfill before creating the graphql client)
*/
useFetchPolyfill: true,
/**
* Optional
* default: false (this includes graphql-tag for node_modules folder)
*/
includeNodeModules: true,
},
});