@@ -19,120 +19,4 @@ export default defineNuxtConfig({
1919
2020See the types below for a complete list of options.
2121
22- ``` ts
23- interface ModuleOptions {
24- /**
25- * Kirby base URL, like `https://kirby.example.com`
26- *
27- * @default process.env.KIRBY_BASE_URL
28- */
29- url? : string
30-
31- /**
32- * Kirby KQL API route path
33- *
34- * @default ' api/query' // for `basic` authentication
35- * @default ' api/kql' // for `bearer` authentication
36- */
37- prefix? : string
38-
39- /**
40- * Kirby API authentication method
41- *
42- * @remarks
43- * Set to `none` to disable authentication
44- *
45- * @default ' basic'
46- */
47- auth? : ' basic' | ' bearer' | ' none'
48-
49- /**
50- * Token for bearer authentication
51- *
52- * @default process.env.KIRBY_API_TOKEN
53- */
54- token? : string
55-
56- /**
57- * Username/password pair for basic authentication
58- *
59- * @default { username: process.env.KIRBY_API_USERNAME, password: process.env.KIRBY_API_PASSWORD }
60- */
61- credentials? : {
62- username: string
63- password: string
64- }
65-
66- /**
67- * Send client-side requests instead of using the server-side proxy
68- *
69- * @remarks
70- * By default, KQL data is fetched safely with a server-side proxy.
71- * If enabled, query requests will be be sent directly from the client.
72- * Note: This means your token or user credentials will be publicly visible.
73- * If Nuxt SSR is disabled, this option is enabled by default.
74- *
75- * @default false
76- */
77- client? : boolean
78-
79- /**
80- * Prefetch custom KQL queries at build-time
81- *
82- * @remarks
83- * The queries will be fully typed and importable from `#nuxt-kql`.
84- *
85- * @default {}
86- */
87- prefetch? : Record <
88- string ,
89- KirbyQueryRequest | { query: KirbyQueryRequest , language: string }
90- >
91-
92- /**
93- * Server-side features
94- */
95- server? : {
96- /**
97- * Enable server-side caching of queries using the Nitro cache API
98- *
99- * @see https://nitro.unjs.io/guide/cache
100- */
101- cache? : boolean
102-
103- /**
104- * Name of the storage mountpoint to use for caching
105- *
106- * @see https://nitro.unjs.io/guide/cache
107- * @default ' cache'
108- */
109- storage? : string
110-
111- /**
112- * Enable stale-while-revalidate behavior (cache is returned while it is being updated)
113- *
114- * @see https://nitro.unjs.io/guide/cache#options
115- * @default false
116- */
117- swr? : boolean
118-
119- /**
120- * Number of seconds to cache the query response
121- *
122- * @see https://nitro.unjs.io/guide/cache#options
123- * @default 1
124- */
125- maxAge? : number
126-
127- /**
128- * Log verbose errors to the console if a query fails
129- *
130- * @remarks
131- * This will log the full query to the console. Depending on the content of the query, this could be a security risk.
132- *
133- * @default false
134- */
135- verboseErrors? : boolean
136- }
137- }
138- ```
22+ <<< @/../src/module.ts#options
0 commit comments