@studio-fes/create-fes-app 0.1.1 → 0.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/README.md +6 -3
  2. package/bin/create-fes-app.mjs +14 -1
  3. package/{templates → dist/templates}/craft/package.json +2 -2
  4. package/{templates → dist/templates}/craft/queries/Entries.gql +4 -0
  5. package/dist/templates/craft/server/api/health.get.ts +5 -0
  6. package/dist/templates/craft/server/api/sitemap.ts +35 -0
  7. package/dist/templates/craft/server/multiCache.serverOptions.ts +25 -0
  8. package/{templates → dist/templates}/strapi/package.json +2 -2
  9. package/package.json +2 -2
  10. package/templates/craft/.env +0 -6
  11. package/templates/craft/.nuxt/app.config.mjs +0 -25
  12. package/templates/craft/.nuxt/components.d.ts +0 -212
  13. package/templates/craft/.nuxt/eslint.config.d.mts +0 -9
  14. package/templates/craft/.nuxt/eslint.config.mjs +0 -77
  15. package/templates/craft/.nuxt/fetch.d.ts +0 -1
  16. package/templates/craft/.nuxt/graphql-operations/index.d.ts +0 -2064
  17. package/templates/craft/.nuxt/graphql-operations/index.js +0 -0
  18. package/templates/craft/.nuxt/i18n-route-resources.mjs +0 -8
  19. package/templates/craft/.nuxt/image/providers.d.ts +0 -53
  20. package/templates/craft/.nuxt/imports.d.ts +0 -128
  21. package/templates/craft/.nuxt/link-checker/routes.json +0 -1
  22. package/templates/craft/.nuxt/manifest/meta/8c7a2100-6449-4269-93f2-c4a4d3c46ac1.json +0 -1
  23. package/templates/craft/.nuxt/module/nuxt-schema-org.d.ts +0 -14
  24. package/templates/craft/.nuxt/module/nuxt-seo-utils.assets.d.ts +0 -25
  25. package/templates/craft/.nuxt/module/nuxt-seo-utils.d.ts +0 -36
  26. package/templates/craft/.nuxt/module/nuxt-site-config.d.ts +0 -46
  27. package/templates/craft/.nuxt/nuxt-graphql-middleware/client-options.d.ts +0 -7
  28. package/templates/craft/.nuxt/nuxt-graphql-middleware/client-options.js +0 -4
  29. package/templates/craft/.nuxt/nuxt-graphql-middleware/config.d.ts +0 -7
  30. package/templates/craft/.nuxt/nuxt-graphql-middleware/config.js +0 -7
  31. package/templates/craft/.nuxt/nuxt-graphql-middleware/documents.d.ts +0 -12
  32. package/templates/craft/.nuxt/nuxt-graphql-middleware/graphql.config.d.ts +0 -10
  33. package/templates/craft/.nuxt/nuxt-graphql-middleware/graphql.config.js +0 -21
  34. package/templates/craft/.nuxt/nuxt-graphql-middleware/helpers.d.ts +0 -5
  35. package/templates/craft/.nuxt/nuxt-graphql-middleware/helpers.js +0 -7
  36. package/templates/craft/.nuxt/nuxt-graphql-middleware/hook-documents.graphql +0 -0
  37. package/templates/craft/.nuxt/nuxt-graphql-middleware/hook-files.d.ts +0 -4
  38. package/templates/craft/.nuxt/nuxt-graphql-middleware/hook-files.js +0 -4
  39. package/templates/craft/.nuxt/nuxt-graphql-middleware/mcp.d.ts +0 -15
  40. package/templates/craft/.nuxt/nuxt-graphql-middleware/mcp.js +0 -74
  41. package/templates/craft/.nuxt/nuxt-graphql-middleware/nitro.d.ts +0 -27
  42. package/templates/craft/.nuxt/nuxt-graphql-middleware/operation-hashes.d.ts +0 -6
  43. package/templates/craft/.nuxt/nuxt-graphql-middleware/operation-types.d.ts +0 -46
  44. package/templates/craft/.nuxt/nuxt-graphql-middleware/operation-types.js +0 -4
  45. package/templates/craft/.nuxt/nuxt-graphql-middleware/operation-variables.d.ts +0 -4
  46. package/templates/craft/.nuxt/nuxt-graphql-middleware/operation-variables.js +0 -29
  47. package/templates/craft/.nuxt/nuxt-graphql-middleware/response.d.ts +0 -22
  48. package/templates/craft/.nuxt/nuxt-graphql-middleware/server-options.d.ts +0 -11
  49. package/templates/craft/.nuxt/nuxt-graphql-middleware/server-options.js +0 -5
  50. package/templates/craft/.nuxt/nuxt-graphql-middleware/sources.d.ts +0 -4
  51. package/templates/craft/.nuxt/nuxt-graphql-middleware/sources.js +0 -9
  52. package/templates/craft/.nuxt/nuxt-multi-cache/config.d.ts +0 -57
  53. package/templates/craft/.nuxt/nuxt-multi-cache/config.js +0 -10
  54. package/templates/craft/.nuxt/nuxt-multi-cache/nitro.d.ts +0 -46
  55. package/templates/craft/.nuxt/nuxt-multi-cache/server-options.d.ts +0 -3
  56. package/templates/craft/.nuxt/nuxt-multi-cache/server-options.js +0 -2
  57. package/templates/craft/.nuxt/nuxt.d.ts +0 -59
  58. package/templates/craft/.nuxt/nuxt.node.d.ts +0 -29
  59. package/templates/craft/.nuxt/nuxt.shared.d.ts +0 -8
  60. package/templates/craft/.nuxt/schema/nuxt.schema.d.ts +0 -17
  61. package/templates/craft/.nuxt/schema/nuxt.schema.json +0 -3
  62. package/templates/craft/.nuxt/tsconfig.app.json +0 -461
  63. package/templates/craft/.nuxt/tsconfig.json +0 -471
  64. package/templates/craft/.nuxt/tsconfig.node.json +0 -245
  65. package/templates/craft/.nuxt/tsconfig.server.json +0 -336
  66. package/templates/craft/.nuxt/tsconfig.shared.json +0 -267
  67. package/templates/craft/.nuxt/types/app.config.d.ts +0 -39
  68. package/templates/craft/.nuxt/types/build.d.ts +0 -60
  69. package/templates/craft/.nuxt/types/builder-env.d.ts +0 -1
  70. package/templates/craft/.nuxt/types/components.d.ts +0 -217
  71. package/templates/craft/.nuxt/types/i18n-plugin.d.ts +0 -133
  72. package/templates/craft/.nuxt/types/imports.d.ts +0 -1132
  73. package/templates/craft/.nuxt/types/layouts.d.ts +0 -20
  74. package/templates/craft/.nuxt/types/middleware.d.ts +0 -7
  75. package/templates/craft/.nuxt/types/modules.d.ts +0 -589
  76. package/templates/craft/.nuxt/types/nitro-config.d.ts +0 -14
  77. package/templates/craft/.nuxt/types/nitro-imports.d.ts +0 -222
  78. package/templates/craft/.nuxt/types/nitro-layouts.d.ts +0 -17
  79. package/templates/craft/.nuxt/types/nitro-middleware.d.ts +0 -11
  80. package/templates/craft/.nuxt/types/nitro-nuxt.d.ts +0 -90
  81. package/templates/craft/.nuxt/types/nitro-routes.d.ts +0 -59
  82. package/templates/craft/.nuxt/types/nitro.d.ts +0 -3
  83. package/templates/craft/.nuxt/types/nuxt-robots-nitro.d.ts +0 -65
  84. package/templates/craft/.nuxt/types/nuxt-robots-nuxt.d.ts +0 -10
  85. package/templates/craft/.nuxt/types/nuxt-scripts-augments.d.ts +0 -15
  86. package/templates/craft/.nuxt/types/nuxt-sitemap-augments.d.ts +0 -61
  87. package/templates/craft/.nuxt/types/nuxt-sitemap-virtual.d.ts +0 -23
  88. package/templates/craft/.nuxt/types/plugins.d.ts +0 -61
  89. package/templates/craft/.nuxt/types/runtime-config.d.ts +0 -236
  90. package/templates/craft/.nuxt/types/shared-app.config.d.ts +0 -32
  91. package/templates/craft/.nuxt/types/shared-imports.d.ts +0 -10
  92. package/templates/craft/.nuxt/types/vue-shim.d.ts +0 -0
  93. package/templates/craft/node_modules/.bin/acorn +0 -43
  94. package/templates/craft/node_modules/.bin/browserslist +0 -43
  95. package/templates/craft/node_modules/.bin/esbuild +0 -34
  96. package/templates/craft/node_modules/.bin/eslint +0 -43
  97. package/templates/craft/node_modules/.bin/eslint-config +0 -43
  98. package/templates/craft/node_modules/.bin/jiti +0 -43
  99. package/templates/craft/node_modules/.bin/nuxi +0 -43
  100. package/templates/craft/node_modules/.bin/nuxt +0 -43
  101. package/templates/craft/node_modules/.bin/rolldown +0 -43
  102. package/templates/craft/node_modules/.bin/rollup +0 -43
  103. package/templates/craft/node_modules/.bin/rollup-plugin-visualizer +0 -43
  104. package/templates/craft/node_modules/.bin/terser +0 -43
  105. package/templates/craft/node_modules/.bin/tsc +0 -43
  106. package/templates/craft/node_modules/.bin/vite +0 -43
  107. package/templates/craft/node_modules/.bin/webpack +0 -43
  108. package/templates/craft/node_modules/.bin/yaml +0 -43
  109. package/templates/craft/node_modules/.cache/jiti/craft-nuxt.config.96899b85.mjs +0 -39
  110. package/templates/craft/node_modules/.cache/jiti/i18n-index.2e90cf09.mjs +0 -6
  111. package/templates/craft/node_modules/.cache/jiti/i18n-index.a093f66a.mjs +0 -6
  112. package/templates/craft/node_modules/.cache/jiti/layer-base-nuxt.config.5fd074c8.mjs +0 -75
  113. package/templates/craft/node_modules/.cache/jiti/layer-craft-nuxt.config.c163264b.mjs +0 -36
  114. package/templates/craft/node_modules/.cache/jiti/layer-craft-parse-env.a47fc157.mjs +0 -23
  115. package/templates/craft/node_modules/.cache/jiti/locales-index.3d828a7c.mjs +0 -16
  116. package/templates/craft/node_modules/.cache/jiti/locales-index.c7376a42.mjs +0 -16
  117. package/templates/craft/node_modules/.cache/jiti/modules-og-image-detect.3072b6e2.mjs +0 -25
  118. package/templates/craft/node_modules/.cache/jiti/modules-og-image-detect.e32906d8.mjs +0 -25
  119. package/templates/craft/node_modules/.cache/jiti/starter-craft-nuxt.config.573fb392.mjs +0 -39
  120. package/templates/craft/node_modules/.cache/nuxt/chrome-workspace.json +0 -1
  121. package/templates/strapi/.env +0 -7
  122. package/templates/strapi/.nuxt/app.config.mjs +0 -25
  123. package/templates/strapi/.nuxt/components.d.ts +0 -216
  124. package/templates/strapi/.nuxt/eslint.config.d.mts +0 -9
  125. package/templates/strapi/.nuxt/eslint.config.mjs +0 -77
  126. package/templates/strapi/.nuxt/fetch.d.ts +0 -1
  127. package/templates/strapi/.nuxt/graphql-operations/index.d.ts +0 -315
  128. package/templates/strapi/.nuxt/graphql-operations/index.js +0 -31
  129. package/templates/strapi/.nuxt/i18n-route-resources.mjs +0 -5
  130. package/templates/strapi/.nuxt/image/providers.d.ts +0 -53
  131. package/templates/strapi/.nuxt/imports.d.ts +0 -126
  132. package/templates/strapi/.nuxt/link-checker/routes.json +0 -1
  133. package/templates/strapi/.nuxt/manifest/meta/7053ffc6-a484-4262-9af2-d3139913c2af.json +0 -1
  134. package/templates/strapi/.nuxt/module/nuxt-schema-org.d.ts +0 -14
  135. package/templates/strapi/.nuxt/module/nuxt-seo-utils.assets.d.ts +0 -25
  136. package/templates/strapi/.nuxt/module/nuxt-seo-utils.d.ts +0 -36
  137. package/templates/strapi/.nuxt/module/nuxt-site-config.d.ts +0 -46
  138. package/templates/strapi/.nuxt/nuxt-graphql-middleware/client-options.d.ts +0 -7
  139. package/templates/strapi/.nuxt/nuxt-graphql-middleware/client-options.js +0 -4
  140. package/templates/strapi/.nuxt/nuxt-graphql-middleware/config.d.ts +0 -7
  141. package/templates/strapi/.nuxt/nuxt-graphql-middleware/config.js +0 -7
  142. package/templates/strapi/.nuxt/nuxt-graphql-middleware/documents.d.ts +0 -12
  143. package/templates/strapi/.nuxt/nuxt-graphql-middleware/graphql.config.d.ts +0 -10
  144. package/templates/strapi/.nuxt/nuxt-graphql-middleware/graphql.config.js +0 -21
  145. package/templates/strapi/.nuxt/nuxt-graphql-middleware/helpers.d.ts +0 -5
  146. package/templates/strapi/.nuxt/nuxt-graphql-middleware/helpers.js +0 -7
  147. package/templates/strapi/.nuxt/nuxt-graphql-middleware/hook-documents.graphql +0 -0
  148. package/templates/strapi/.nuxt/nuxt-graphql-middleware/hook-files.d.ts +0 -4
  149. package/templates/strapi/.nuxt/nuxt-graphql-middleware/hook-files.js +0 -4
  150. package/templates/strapi/.nuxt/nuxt-graphql-middleware/mcp.d.ts +0 -15
  151. package/templates/strapi/.nuxt/nuxt-graphql-middleware/mcp.js +0 -74
  152. package/templates/strapi/.nuxt/nuxt-graphql-middleware/nitro.d.ts +0 -19
  153. package/templates/strapi/.nuxt/nuxt-graphql-middleware/operation-hashes.d.ts +0 -6
  154. package/templates/strapi/.nuxt/nuxt-graphql-middleware/operation-types.d.ts +0 -32
  155. package/templates/strapi/.nuxt/nuxt-graphql-middleware/operation-types.js +0 -4
  156. package/templates/strapi/.nuxt/nuxt-graphql-middleware/operation-variables.d.ts +0 -4
  157. package/templates/strapi/.nuxt/nuxt-graphql-middleware/operation-variables.js +0 -12
  158. package/templates/strapi/.nuxt/nuxt-graphql-middleware/response.d.ts +0 -18
  159. package/templates/strapi/.nuxt/nuxt-graphql-middleware/server-options.d.ts +0 -8
  160. package/templates/strapi/.nuxt/nuxt-graphql-middleware/server-options.js +0 -5
  161. package/templates/strapi/.nuxt/nuxt-graphql-middleware/sources.d.ts +0 -4
  162. package/templates/strapi/.nuxt/nuxt-graphql-middleware/sources.js +0 -7
  163. package/templates/strapi/.nuxt/nuxt-multi-cache/config.d.ts +0 -57
  164. package/templates/strapi/.nuxt/nuxt-multi-cache/config.js +0 -10
  165. package/templates/strapi/.nuxt/nuxt-multi-cache/nitro.d.ts +0 -46
  166. package/templates/strapi/.nuxt/nuxt-multi-cache/server-options.d.ts +0 -3
  167. package/templates/strapi/.nuxt/nuxt-multi-cache/server-options.js +0 -2
  168. package/templates/strapi/.nuxt/nuxt.d.ts +0 -58
  169. package/templates/strapi/.nuxt/nuxt.node.d.ts +0 -28
  170. package/templates/strapi/.nuxt/nuxt.shared.d.ts +0 -8
  171. package/templates/strapi/.nuxt/schema/nuxt.schema.d.ts +0 -17
  172. package/templates/strapi/.nuxt/schema/nuxt.schema.json +0 -3
  173. package/templates/strapi/.nuxt/tsconfig.app.json +0 -456
  174. package/templates/strapi/.nuxt/tsconfig.json +0 -466
  175. package/templates/strapi/.nuxt/tsconfig.node.json +0 -243
  176. package/templates/strapi/.nuxt/tsconfig.server.json +0 -334
  177. package/templates/strapi/.nuxt/tsconfig.shared.json +0 -267
  178. package/templates/strapi/.nuxt/types/app.config.d.ts +0 -39
  179. package/templates/strapi/.nuxt/types/build.d.ts +0 -60
  180. package/templates/strapi/.nuxt/types/builder-env.d.ts +0 -1
  181. package/templates/strapi/.nuxt/types/components.d.ts +0 -221
  182. package/templates/strapi/.nuxt/types/i18n-plugin.d.ts +0 -133
  183. package/templates/strapi/.nuxt/types/imports.d.ts +0 -1120
  184. package/templates/strapi/.nuxt/types/layouts.d.ts +0 -20
  185. package/templates/strapi/.nuxt/types/middleware.d.ts +0 -7
  186. package/templates/strapi/.nuxt/types/modules.d.ts +0 -569
  187. package/templates/strapi/.nuxt/types/nitro-config.d.ts +0 -14
  188. package/templates/strapi/.nuxt/types/nitro-imports.d.ts +0 -220
  189. package/templates/strapi/.nuxt/types/nitro-layouts.d.ts +0 -17
  190. package/templates/strapi/.nuxt/types/nitro-middleware.d.ts +0 -11
  191. package/templates/strapi/.nuxt/types/nitro-nuxt.d.ts +0 -90
  192. package/templates/strapi/.nuxt/types/nitro-routes.d.ts +0 -44
  193. package/templates/strapi/.nuxt/types/nitro.d.ts +0 -3
  194. package/templates/strapi/.nuxt/types/nuxt-robots-nitro.d.ts +0 -65
  195. package/templates/strapi/.nuxt/types/nuxt-robots-nuxt.d.ts +0 -10
  196. package/templates/strapi/.nuxt/types/nuxt-scripts-augments.d.ts +0 -15
  197. package/templates/strapi/.nuxt/types/nuxt-sitemap-augments.d.ts +0 -61
  198. package/templates/strapi/.nuxt/types/nuxt-sitemap-virtual.d.ts +0 -23
  199. package/templates/strapi/.nuxt/types/plugins.d.ts +0 -58
  200. package/templates/strapi/.nuxt/types/runtime-config.d.ts +0 -244
  201. package/templates/strapi/.nuxt/types/shared-app.config.d.ts +0 -32
  202. package/templates/strapi/.nuxt/types/shared-imports.d.ts +0 -10
  203. package/templates/strapi/.nuxt/types/vue-shim.d.ts +0 -0
  204. package/templates/strapi/node_modules/.bin/esbuild +0 -34
  205. package/templates/strapi/node_modules/.bin/jiti +0 -43
  206. package/templates/strapi/node_modules/.bin/nuxi +0 -43
  207. package/templates/strapi/node_modules/.bin/nuxt +0 -43
  208. package/templates/strapi/node_modules/.bin/rolldown +0 -43
  209. package/templates/strapi/node_modules/.bin/rollup +0 -43
  210. package/templates/strapi/node_modules/.bin/rollup-plugin-visualizer +0 -43
  211. package/templates/strapi/node_modules/.bin/terser +0 -43
  212. package/templates/strapi/node_modules/.bin/tsc +0 -43
  213. package/templates/strapi/node_modules/.bin/vite +0 -43
  214. package/templates/strapi/node_modules/.bin/webpack +0 -43
  215. package/templates/strapi/node_modules/.bin/yaml +0 -43
  216. package/templates/strapi/node_modules/.cache/jiti/layer-base-nuxt.config.5fd074c8.mjs +0 -75
  217. package/templates/strapi/node_modules/.cache/jiti/layer-strapi-nuxt.config.29354bb2.mjs +0 -33
  218. package/templates/strapi/node_modules/.cache/jiti/layer-strapi-parse-env.46647a07.mjs +0 -23
  219. package/templates/strapi/node_modules/.cache/jiti/modules-og-image-detect.3072b6e2.mjs +0 -25
  220. package/templates/strapi/node_modules/.cache/jiti/modules-vue-strapi-blocks-renderer.5518edfe.mjs +0 -22
  221. package/templates/strapi/node_modules/.cache/jiti/starter-strapi-nuxt.config.b85f8ac6.mjs +0 -15
  222. package/templates/strapi/node_modules/.cache/jiti/strapi-nuxt.config.5d4f493c.mjs +0 -15
  223. package/templates/strapi/node_modules/.cache/nuxt/chrome-workspace.json +0 -1
  224. /package/{templates → dist/templates}/craft/.env.example +0 -0
  225. /package/{templates → dist/templates}/craft/.vscode/extensions.json +0 -0
  226. /package/{templates → dist/templates}/craft/.vscode/launch.json +0 -0
  227. /package/{templates → dist/templates}/craft/.vscode/settings.json +0 -0
  228. /package/{templates → dist/templates}/craft/.vscode/unocss.json +0 -0
  229. /package/{templates → dist/templates}/craft/Dockerfile +0 -0
  230. /package/{templates → dist/templates}/craft/README.md +0 -0
  231. /package/{templates → dist/templates}/craft/_gitignore +0 -0
  232. /package/{templates → dist/templates}/craft/app/app.vue +0 -0
  233. /package/{templates → dist/templates}/craft/app/components/.gitkeep +0 -0
  234. /package/{templates → dist/templates}/craft/app/components/LocaleSwitcher.vue +0 -0
  235. /package/{templates → dist/templates}/craft/app/pages/[slug].vue +0 -0
  236. /package/{templates → dist/templates}/craft/app/pages/index.vue +0 -0
  237. /package/{templates → dist/templates}/craft/app/plugins/gsap-reduced-motion.client.ts +0 -0
  238. /package/{templates → dist/templates}/craft/app/plugins/org-schema.server.ts +0 -0
  239. /package/{templates → dist/templates}/craft/app/plugins/site-config.server.ts +0 -0
  240. /package/{templates → dist/templates}/craft/eslint.config.js +0 -0
  241. /package/{templates → dist/templates}/craft/graphql.config.ts +0 -0
  242. /package/{templates → dist/templates}/craft/i18n/index.ts +0 -0
  243. /package/{templates → dist/templates}/craft/i18n/locales/en.ts +0 -0
  244. /package/{templates → dist/templates}/craft/i18n/locales/index.ts +0 -0
  245. /package/{templates → dist/templates}/craft/i18n/locales/it.ts +0 -0
  246. /package/{templates → dist/templates}/craft/i18n.config.ts +0 -0
  247. /package/{templates → dist/templates}/craft/nuxt.config.ts +0 -0
  248. /package/{templates → dist/templates}/craft/public/_robots.txt +0 -0
  249. /package/{templates → dist/templates}/craft/public/favicon.ico +0 -0
  250. /package/{templates → dist/templates}/craft/public/og-image.jpg +0 -0
  251. /package/{templates → dist/templates}/craft/queries/Entry.gql +0 -0
  252. /package/{templates → dist/templates}/craft/queries/OrgSchema.gql +0 -0
  253. /package/{templates → dist/templates}/craft/queries/Page.gql +0 -0
  254. /package/{templates → dist/templates}/craft/queries/SiteConfig.gql +0 -0
  255. /package/{templates → dist/templates}/craft/queries/fragments/Interfaces.gql +0 -0
  256. /package/{templates → dist/templates}/craft/queries/fragments/Media.gql +0 -0
  257. /package/{templates → dist/templates}/craft/queries/fragments/OrgSchemaField.gql +0 -0
  258. /package/{templates → dist/templates}/craft/queries/fragments/SEO.gql +0 -0
  259. /package/{templates → dist/templates}/craft/schema.graphql +0 -0
  260. /package/{templates → dist/templates}/craft/tsconfig.json +0 -0
  261. /package/{templates → dist/templates}/craft/uno.config.ts +0 -0
  262. /package/{templates → dist/templates}/strapi/.env.example +0 -0
  263. /package/{templates → dist/templates}/strapi/README.md +0 -0
  264. /package/{templates → dist/templates}/strapi/_gitignore +0 -0
  265. /package/{templates → dist/templates}/strapi/app/app.vue +0 -0
  266. /package/{templates → dist/templates}/strapi/app/components/DynamicZone.vue +0 -0
  267. /package/{templates → dist/templates}/strapi/app/components/SectionSingleImage.vue +0 -0
  268. /package/{templates → dist/templates}/strapi/app/components/VideoProgress.vue +0 -0
  269. /package/{templates → dist/templates}/strapi/app/pages/[slug].vue +0 -0
  270. /package/{templates → dist/templates}/strapi/app/pages/index.vue +0 -0
  271. /package/{templates → dist/templates}/strapi/app/plugins/gsap-reduced-motion.client.ts +0 -0
  272. /package/{templates → dist/templates}/strapi/app/plugins/site-config.server.ts +0 -0
  273. /package/{templates → dist/templates}/strapi/eslint.config.js +0 -0
  274. /package/{templates → dist/templates}/strapi/nuxt.config.ts +0 -0
  275. /package/{templates → dist/templates}/strapi/public/_robots.txt +0 -0
  276. /package/{templates → dist/templates}/strapi/public/favicon.ico +0 -0
  277. /package/{templates → dist/templates}/strapi/public/og-image.jpg +0 -0
  278. /package/{templates → dist/templates}/strapi/queries/PageCustomPage.gql +0 -0
  279. /package/{templates → dist/templates}/strapi/queries/PageHome.gql +0 -0
  280. /package/{templates → dist/templates}/strapi/queries/fragments/MetaSocial.gql +0 -0
  281. /package/{templates → dist/templates}/strapi/queries/fragments/PageCustomPage.gql +0 -0
  282. /package/{templates → dist/templates}/strapi/queries/fragments/SectionError.gql +0 -0
  283. /package/{templates → dist/templates}/strapi/queries/fragments/SectionSingleImage.gql +0 -0
  284. /package/{templates → dist/templates}/strapi/queries/fragments/SeoMeta.gql +0 -0
  285. /package/{templates → dist/templates}/strapi/queries/fragments/StrapiFile.gql +0 -0
  286. /package/{templates → dist/templates}/strapi/schema.graphql +0 -0
  287. /package/{templates → dist/templates}/strapi/tsconfig.json +0 -0
@@ -1,74 +0,0 @@
1
- /*
2
- * @see [Documentation](https://nuxt-graphql-middleware.dulnan.net/advanced/templates#mcp)
3
- */
4
- export const mcpServerRoute = "/mcp/nuxt-graphql-middleware"
5
- export const devServerUrl = ""
6
- export const includeComposables = true
7
- export const docs = [
8
- {
9
- "uri": "docs://composables/useGraphqlQuery",
10
- "name": "useGraphqlQuery",
11
- "description": "Execute a GraphQL query using $fetch",
12
- "content": "# useGraphqlQuery\n\nExecutes a query using $fetch and returns the response.\n\n```typescript\nconst { data } = await useGraphqlQuery('films')\n```\n\nVariables can be passed as the second argument:\n\n```typescript\nconst { data } = await useGraphqlQuery('filmById', { id: '123' })\n```\n\nArguments are properly type checked:\n\n```typescript\n// ✅ Everyting correct.\nconst { data } = await useGraphqlQuery('filmById', { id: '123' })\n\n// ❌ Wrong variable type.\nconst { data } = await useGraphqlQuery('filmById', { id: 123 })\n\n// ❌ Missing variables.\nconst { data } = await useGraphqlQuery('filmById')\n\n// ❌ Wrong query name.\nconst { data } = await useGraphqlQuery('getFilmById', { id: '123' })\n```\n\nThe return value is also properly typed based on the query response:\n\n```typescript\nconst { data } = await useGraphqlQuery('filmById', { id: '123' })\n\n// ❌ Property does not exist.\nconsole.log(data.films)\n\n// ❌ Object is possibly null.\nconsole.log(data.allFilms.films)\n\n// ✅ Everyting correct.\nconsole.log(data.allFilms?.films)\n```\n\n## Object Syntax\n\nYou can also provide a single argument which is an object. One use case might be\nto have different query names depending on some context.\n\n```typescript\nconst { data } = await useGraphqlQuery({\n name: 'filmById',\n variables: { id: '123' },\n})\n```\n\n## Fetch Options\n\nYou can also pass an object instead, which allows you to additionally provide\nfetch options for the request:\n\n```typescript\nconst { data } = await useGraphqlQuery({\n name: 'filmById',\n variables: { id: '123' },\n fetchOptions: {\n headers: {\n authorization: 'foobar',\n },\n },\n})\n```\n"
13
- },
14
- {
15
- "uri": "docs://composables/useGraphqlMutation",
16
- "name": "useGraphqlMutation",
17
- "description": "Execute a GraphQL mutation using $fetch",
18
- "content": "# useGraphqlMutation\n\nSame usage like useGraphqlQuery, but for mutations:\n\n```typescript\nconst { data } = await useGraphqlMutation('trackVisit')\n```\n\n```typescript\nconst { data } = await useGraphqlMutation('addToCart', { id: '456' })\n```\n\n## Custom Fetch Options\n\nIn addition to the fetch options set when using\n[/composables/useGraphqlState](useGraphqlState), you can also set fetch options\nhere (which will override properties set by the useGraphqlState composable):\n\n```typescript\nconst { data } = await useGraphqlMutation(\n 'addToCart',\n { id: '456' },\n {\n onRequest(options) {\n options.headers['Custom-Special-Header'] = 'Foobar'\n },\n },\n)\n```\n"
19
- },
20
- {
21
- "uri": "docs://composables/useAsyncGraphqlQuery",
22
- "name": "useAsyncGraphqlQuery",
23
- "description": "SSR-compatible GraphQL query with useAsyncData",
24
- "content": "# useAsyncGraphqlQuery\n\nThis composable is a wrapper around Nuxt's\n[useAsyncData](https://nuxt.com/docs/api/composables/use-async-data) that\nexecutes a GraphQL query via the middleware. It provides SSR-compatible,\nreactive data fetching with automatic refetching when variables change.\n\n## Basic Usage\n\n```typescript\nconst { data } = await useAsyncGraphqlQuery('users')\n```\n\nThis is equivalent to:\n\n```typescript\nconst { data } = await useAsyncData(() => useGraphqlQuery('users'))\n```\n\n## With Variables\n\nPass variables as the second argument:\n\n```typescript\nconst { data } = await useAsyncGraphqlQuery('filmById', { id: '123' })\n```\n\n## Reactive Variables\n\nWhen variables are wrapped in a `computed` ref, the query automatically\nrefetches when variables change:\n\n```typescript\nimport type { UserByIdQueryVariables } from '#graphql-operations'\n\nconst route = useRoute()\n\nconst variables = computed<UserByIdQueryVariables>(() => {\n return {\n id: route.params.id.toString(),\n }\n})\n\nconst { data } = await useAsyncGraphqlQuery('userById', variables)\n```\n\nThe composable automatically adds reactive variables to the `watch` option of\n`useAsyncData`, triggering a refetch whenever the variables change.\n\n## Options\n\nThe third argument accepts options that extend\n[AsyncDataOptions](https://nuxt.com/docs/api/composables/use-async-data#params)\nwith additional GraphQL-specific settings:\n\n```typescript\nconst { data } = await useAsyncGraphqlQuery('users', null, {\n // All useAsyncData options are supported\n transform: (response) => response.data.users,\n default: () => [],\n immediate: true,\n server: true,\n\n // GraphQL-specific options\n graphqlCaching: { client: true },\n fetchOptions: { headers: { 'x-custom': 'value' } },\n clientContext: { language: 'en' },\n})\n```\n\n### transform\n\nTransform the response before storing it in `data`. This is useful to extract\nnested data or modify the response structure:\n\n```typescript\nconst { data: users } = await useAsyncGraphqlQuery('users', null, {\n transform: (response) => {\n // response.data is UsersQuery\n return response.data.users\n },\n})\n\n// users.value is now the users array directly\n```\n\n### graphqlCaching\n\nEnable client-side caching for this query. Requires `clientCache.enabled: true`\nin module options. See [Caching](/features/caching) for more details.\n\n```typescript\nconst { data } = await useAsyncGraphqlQuery('users', null, {\n graphqlCaching: {\n client: true,\n },\n})\n```\n\nWhen enabled:\n\n- Results are cached in memory using an LRU cache\n- Subsequent calls with the same variables return cached data\n- Cache survives client-side navigation\n- SSR payload data is preserved during hydration\n\n### fetchOptions\n\nPass options to the underlying `$fetch` call to the middleware endpoint:\n\n```typescript\nconst { data } = await useAsyncGraphqlQuery('users', null, {\n fetchOptions: {\n headers: {\n authorization: `Bearer ${token}`,\n },\n timeout: 5000,\n },\n})\n```\n\n### clientContext\n\nOverride or extend the global client context for this specific request. Values\nhere take precedence over those defined in\n[defineGraphqlClientOptions](/configuration/client-options):\n\n```typescript\nconst { data } = await useAsyncGraphqlQuery('users', null, {\n clientContext: {\n language: 'de', // Override the global language for this request\n },\n})\n```\n\n## Return Value\n\nReturns the same object as\n[useAsyncData](https://nuxt.com/docs/api/composables/use-async-data#return-values):\n\n```typescript\nconst {\n data, // Ref<T | undefined> - The response data\n pending, // Ref<boolean> - Loading state\n error, // Ref<Error | undefined> - Error if request failed\n status, // Ref<'idle' | 'pending' | 'success' | 'error'>\n refresh, // () => Promise<void> - Manually refetch data\n execute, // () => Promise<void> - Same as refresh\n clear, // () => void - Clear data and error\n} = await useAsyncGraphqlQuery('users')\n```\n\n## Type Safety\n\nThe composable is fully typed based on your GraphQL operations:\n\n```typescript\n// Variables are type-checked\nconst { data } = await useAsyncGraphqlQuery('userById', {\n id: '123', // ✅ Correct type\n // id: 123 // ❌ Type error: expected string\n})\n\n// Response data is typed\nif (data.value) {\n console.log(data.value.data.userById?.name) // ✅ Autocomplete works\n}\n```\n\nOperations that require variables will show a type error if variables are\nomitted:\n\n```typescript\n// ❌ Type error: variables required\nconst { data } = await useAsyncGraphqlQuery('userById')\n\n// ✅ Correct\nconst { data } = await useAsyncGraphqlQuery('userById', { id: '123' })\n```\n\n## Hot Module Reloading\n\nDuring development, the composable automatically refetches data when the\nunderlying GraphQL document or any used fragments change. This provides instant\nfeedback when modifying queries.\n\n## Important Considerations\n\n### Execution Context\n\nLike `useAsyncData`, this composable must be called in specific contexts:\n\n- **Component setup function** - At the root level, not inside callbacks\n- **Plugin setup** - During plugin initialization\n- **Route middleware** - During navigation\n- **Other composables** - When called from a composable that follows these rules\n\n```typescript\n// ✅ Correct - at root of setup\nconst { data } = await useAsyncGraphqlQuery('users')\n\n// ❌ Wrong - inside a callback\nconst onClick = async () => {\n // This won't work correctly with SSR\n const { data } = await useAsyncGraphqlQuery('users')\n}\n```\n\nFor fetching data inside event handlers or callbacks, use\n[useGraphqlQuery](/composables/useGraphqlQuery) instead.\n\n### Unique Keys\n\nThe composable automatically generates a unique key for `useAsyncData` based on:\n\n- The operation name\n- A hash of the variables\n\nThis ensures that different variable combinations are cached separately and\nmultiple instances don't conflict.\n\n## Examples\n\n### Pagination\n\n```typescript\nimport type { UsersPaginatedQueryVariables } from '#graphql-operations'\n\nconst page = ref(1)\nconst limit = 10\n\nconst variables = computed<UsersPaginatedQueryVariables>(() => ({\n offset: (page.value - 1) * limit,\n limit,\n}))\n\nconst { data, pending } = await useAsyncGraphqlQuery(\n 'usersPaginated',\n variables,\n {\n transform: (response) => response.data.users,\n },\n)\n\nfunction nextPage() {\n page.value++\n // Query automatically refetches due to reactive variables\n}\n```\n\n### Conditional Fetching\n\n```typescript\nconst userId = ref<string | null>(null)\n\nconst variables = computed(() => (userId.value ? { id: userId.value } : null))\n\nconst { data } = await useAsyncGraphqlQuery('userById', variables, {\n // Don't fetch until we have a userId\n immediate: false,\n})\n\n// Later, when userId is set:\nuserId.value = '123'\n// The query will now execute\n```\n\n### Error Handling\n\n```typescript\nconst { data, error, refresh } = await useAsyncGraphqlQuery('users')\n\n// Check for errors\nif (error.value) {\n console.error('Query failed:', error.value.message)\n}\n\n// Retry on error\nasync function retry() {\n await refresh()\n}\n```\n\n### With Default Value\n\n```typescript\ninterface User {\n id: string\n name: string\n}\n\nconst { data } = await useAsyncGraphqlQuery('users', null, {\n transform: (response) => response.data.users ?? [],\n default: () => [] as User[],\n})\n\n// data.value is never undefined, defaults to empty array\n```\n\n## Comparison with useGraphqlQuery\n\n| Feature | useAsyncGraphqlQuery | useGraphqlQuery |\n| ------------------ | -------------------- | ------------------------------- |\n| SSR Support | ✅ Built-in | ✅ When wrapped in useAsyncData |\n| Reactive Variables | ✅ Automatic refetch | ❌ Manual handling required |\n| Returns | AsyncData object | Promise with response |\n| Use in Callbacks | ❌ Not recommended | ✅ Works anywhere |\n| Caching | ✅ With useAsyncData | ✅ With graphqlCaching option |\n| HMR Refresh | ✅ Automatic | ❌ Manual |\n\nChoose `useAsyncGraphqlQuery` for page-level data fetching with SSR support.\nChoose `useGraphqlQuery` for imperative fetching in event handlers, plugins, or\nwhen you need more control.\n"
25
- },
26
- {
27
- "uri": "docs://composables/useGraphqlState",
28
- "name": "useGraphqlState",
29
- "description": "Access cached GraphQL query state",
30
- "content": "# useGraphqlState\n\nThis composable allows you to set fetch options for the useGraphqlQuery,\nuseAsyncGraphqlQuery and useGraphqlMutation composables. One common use case is\nto pass custom request headers to the GraphQL middleware request.\n\n::: warning\n\nThe state is only used for requests made from within a Nuxt app context (e.g.\npages, route middleware, etc.). Usually this is used to \"pass\" information from\nthe client/browser context to the middleware.\n\n:::\n\n::: code-group\n\n```typescript [plugins/graphqlState.ts]\nexport default defineNuxtPlugin({\n name: 'my-state-plugin',\n // Makes sure that your plugin is executed after this plugin.\n // If it were to run before, then `state` would be null.\n dependsOn: ['nuxt-graphql-middleware-provide-state'],\n setup() {\n const state = useGraphqlState()\n\n // This is nullable because it's injected by a plugin.\n if (!state) {\n return\n }\n\n const token = useToken()\n\n // Set fetch options for all GraphQL queries and mutations.\n state.fetchOptions = {\n // Static header that should be the same for all requests.\n headers: {\n CustomHeader: 'foobar',\n },\n\n // Header value is evaluated on every request.\n onRequest({ options, request }) {\n options.headers.set('x-auth-token', token.value)\n },\n\n // Handle headers sent from the middleware to the Nuxt app (client or server side).\n onResponse(result) {\n const headers = result.response?.headers\n const newToken = headers.get('x-auth-token')\n if (newToken) {\n token.value = newToken\n }\n },\n }\n },\n})\n```\n\n:::\n"
31
- },
32
- {
33
- "uri": "docs://composables/useGraphqlUploadMutation",
34
- "name": "useGraphqlUploadMutation",
35
- "description": "GraphQL mutation with file upload support",
36
- "content": "# useGraphqlUploadMutation\n\nThis composable is only available when setting `enableFileUploads` to `true` in\nthe module's configuration. It allows to upload files inside a mutation. The\nimplementation follows the\n[GraphQL multipart request specification](https://github.com/jaydenseric/graphql-multipart-request-spec),\nwhich is supported by a lot of GraphQL servers.\n\n## Basic Usage\n\nThe composable handles the FormData part, so files can be directly provided\ninside the mutation variables:\n\n```typescript\nasync function upload(image: File) {\n const data = await useGraphqlUploadMutation('uploadImage', {\n image,\n })\n}\n```\n\nMultiple files are also supported, both in the same field or in deeply nested\nfields:\n\n```typescript\nconst files = ref<File[]>([])\n\nconst data = await useGraphqlUploadMutation('uploadFiles', {\n elements: files.value.map((file) => {\n return {\n name: file.name,\n file: file,\n }\n }),\n})\n```\n\n## Server Route\n\nTo support file uploads, when the feature is enabled, an additional server route\nis added:\n\n```\n/api/graphql_middleware/upload/[name_of_mutation]\n```\n\nThis route expects a `multipart/form-data` request. The\n`useGraphqlUploadMutation` composable makes sure the data is sent in the correct\nformat.\n\nThe server route does not perform any validations on the provided data, for\nexample there is no file size limitation. This should be handled separately, for\nexample on the web server or by implementing a custom Nitro middleware.\n\nIn addition, the route does not save any of the files. It only validates that a\nvalid, existing mutation is used. It also makes sure that it's not possible to\nsend arbitrary operations.\n"
37
- },
38
- {
39
- "uri": "docs://configuration/module",
40
- "name": "Module Configuration",
41
- "description": "Configure the nuxt-graphql-middleware module options",
42
- "content": "# Module Options\n\n## autoImportPatterns?\n\n> `optional` **autoImportPatterns**: `string`[]\n\nDefined in:\n[options.ts:25](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L25)\n\nFile glob patterns for the auto import feature.\n\nIf left empty, no documents are auto imported.\n\n### Default\n\n```json\n[\"**/.{gql,graphql}\", \"!node_modules\"]\n```\n\n### Example\n\n```ts\n// Load .graphql files from pages folder and from a node_modules dependency.\nconst autoImportPatterns = [\n './pages/**/*.graphql',\n 'node_modules/my_library/dist/**/*.graphql',\n]\n```\n\n---\n\n## clientCache?\n\n> `optional` **clientCache**: `object`\n\nDefined in:\n[options.ts:185](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L185)\n\nClient caching configuration.\n\n### enabled?\n\n> `optional` **enabled**: `boolean`\n\nWhether client caching should be enabled.\n\nNote that if you set this to false during build, the cache will not be available\nat all. If you intend to enable/disable it using app config at runtime, it\n_must_ be enabled at build!\n\n##### Default\n\n```ts\nfalse\n```\n\n### maxSize?\n\n> `optional` **maxSize**: `number`\n\nThe maximum number of cache entries.\n\n##### Default\n\n```ts\n100\n```\n\n---\n\n## codegenConfig?\n\n> `optional` **codegenConfig**: `GeneratorOptions`\n\nDefined in:\n[options.ts:142](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L142)\n\nOptions for graphql-typescript-deluxe code generator.\n\n### See\n\n[GeneratorOptions](https://github.com/dulnan/graphql-typescript-deluxe/blob/main/src/types/options.ts#L193)\n\n---\n\n## codegenSchemaConfig?\n\n> `optional` **codegenSchemaConfig**: `object`\n\nDefined in:\n[options.ts:147](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L147)\n\nConfiguration for graphql-codegen when downloading the schema.\n\n### schemaAstConfig?\n\n> `optional` **schemaAstConfig**: `SchemaASTConfig`\n\nConfigure how the schema.graphql file should be generated.\n\n##### See\n\n[SchemaASTConfig](https://github.com/dotansimha/graphql-code-generator/blob/master/packages/plugins/other/schema-ast/src/index.ts#L23)\n\n### urlSchemaOptions?\n\n> `optional` **urlSchemaOptions**: `UrlSchemaOptions`\n\nConfigure how the schema-ast introspection request should be made.\n\nUsually this is where you can provide a custom authentication header:\n\n```typescript\nconst codegenSchemaConfig = {\n urlSchemaOptions: {\n headers: {\n authentication: 'foobar',\n },\n },\n}\n```\n\n##### See\n\n[Types.UrlSchemaOptions](https://github.com/dotansimha/graphql-code-generator/blob/master/packages/utils/plugins-helpers/src/types.ts#L82)\n\n---\n\n## debug?\n\n> `optional` **debug**: `boolean`\n\nDefined in:\n[options.ts:82](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L82)\n\nEnable detailled debugging messages.\n\n### Default\n\n```ts\nfalse\n```\n\n---\n\n## devtools?\n\n> `optional` **devtools**: `boolean`\n\nDefined in:\n[options.ts:180](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L180)\n\nEnable Nuxt DevTools integration.\n\n### Default\n\n```ts\ntrue\n```\n\n---\n\n## documents?\n\n> `optional` **documents**: `string`[]\n\nDefined in:\n[options.ts:56](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L56)\n\nAdditional raw documents to include.\n\nUseful if for example you need to generate queries during build time.\n\n### Default\n\n```ts\n;[]\n```\n\n### Example\n\n```ts\nconst documents = [\n `\n query myQuery {\n articles {\n title\n id\n }\n }`,\n ...getGeneratedDocuments(),\n]\n```\n\n---\n\n## downloadSchema?\n\n> `optional` **downloadSchema**: `boolean`\n\nDefined in:\n[options.ts:108](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L108)\n\nDownload the GraphQL schema and store it on disk.\n\nUsually you'll want to only enable this during dev mode.\n\n### Default\n\n```ts\ntrue\n```\n\n---\n\n## enableFileUploads?\n\n> `optional` **enableFileUploads**: `boolean`\n\nDefined in:\n[options.ts:75](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L75)\n\nEnable support for uploading files via GraphQL.\n\nWhen enabled, an additional `useGraphqlUploadMutation` composable is included,\nin addition to a new server endpoint that handles multi part file uploads for\nGraphQL mutations.\n\n---\n\n## errorOverlay?\n\n> `optional` **errorOverlay**: `boolean`\n\nDefined in:\n[options.ts:87](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L87)\n\nDisplays GraphQL response errors in an overlay in dev mode.\n\n---\n\n## experimental?\n\n> `optional` **experimental**: `object`\n\nDefined in:\n[options.ts:208](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L208)\n\nExperimental features.\n\n### improvedQueryParamEncoding?\n\n> `optional` **improvedQueryParamEncoding**: `boolean`\n\nEnables improved encoding for GraphQL query param encoding.\n\nIf enabled, query variables that are non-strings such as numbers or booleans are\nencoded as strings, with a prefix in their name to indicate the type.\n\nFor example, given this object definining query variables:\n\n```\n{\n name: 'John',\n age: 35,\n isUser: false\n}\n```\n\nThis would be encoded as:\n\n```\nname=John&n:age=35&b:isUser=false\n```\n\nThis only works for flat primitive values. Nested objects or arrays are still\nencoded using the \\_\\_variables fallback where all variables are JSON encoded.\n\n---\n\n## graphqlConfigFilePath?\n\n> `optional` **graphqlConfigFilePath**: `string`\n\nDefined in:\n[options.ts:34](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L34)\n\nThe path where your graphql.config.ts is, relative to the location of\nnuxt.config.ts.\n\nUsed to generate the correct paths in the graphql.config.ts file generated by\nthe module.\n\n### Default\n\n```ts\n'./graphql.config.ts'\n```\n\n---\n\n## graphqlEndpoint?\n\n> `optional` **graphqlEndpoint**: `string`\n\nDefined in:\n[options.ts:99](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L99)\n\nThe URL of the GraphQL server.\n\nIf not provided, the module will use the\nNUXT_GRAPHQL_MIDDLEWARE_GRAPHQL_ENDPOINT environment variable during dev mode.\n\nFor the runtime execution you can provide a method that determines the endpoint\nduring runtime. See the server/graphqlMiddleware.serverOptions.ts documentation\nfor more information.\n\n---\n\n## includeComposables?\n\n> `optional` **includeComposables**: `boolean`\n\nDefined in:\n[options.ts:66](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L66)\n\nWether the useGraphqlQuery, useGraphqlMutation and useGraphqlState composables\nshould be included.\n\n### Default\n\n```ts\ntrue\n```\n\n---\n\n## logOnlyErrors?\n\n> `optional` **logOnlyErrors**: `boolean`\n\nDefined in:\n[options.ts:135](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L135)\n\nLogs only errors.\n\nWhen enabled only errors are logged to the console when generating the GraphQL\noperations. If false, all operations are logged, including valid ones.\n\n---\n\n## schemaPath?\n\n> `optional` **schemaPath**: `string`\n\nDefined in:\n[options.ts:118](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L118)\n\nPath to the GraphQL schema file.\n\nIf `downloadSchema` is `true`, the downloaded schema is written to this\nspecified path. If `downloadSchema` is `false`, this file must be present in\norder to generate types.\n\n### Default\n\n```ts\n'./schema.graphql'\n```\n\n---\n\n## mcp?\n\n> `optional` **mcp**: `object`\n\nDefined in:\n[options.ts:242](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L242)\n\nConfiguration for the @nuxtjs/mcp-toolkit integration.\n\n### enabled\n\n> **enabled**: `boolean`\n\nWhether the MCP integration should be enabled.\n\n### route?\n\n> `optional` **route**: `string`\n\nThe route of the MCP server.\n\n##### Default\n\n```ts\n'/mcp/nuxt-graphql-middleware'\n```\n\n---\n\n## serverApiPrefix?\n\n> `optional` **serverApiPrefix**: `string`\n\nDefined in:\n[options.ts:127](https://github.com/dulnan/nuxt-graphql-middleware/blob/main/src/build/types/options.ts#L127)\n\nThe prefix for the server route.\n\n### Default\n\n```ts\n'/api/graphql_middleware'\n```\n"
43
- },
44
- {
45
- "uri": "docs://configuration/client-options",
46
- "name": "Client Options",
47
- "description": "Configure client-side GraphQL request behavior",
48
- "content": "# Client Options\n\n`nuxt-graphql-middleware` will look for a file called\n`graphqlMiddleware.clientOptions.ts` in your app dir. This file can export so\ncalled \"client options\" which are used when _making a request to the GraphQL\nmiddleware_.\n\n::: warning\n\nNote that the client options are only used in a **Nuxt app context** - they are\nnot used when using `useGraphqlQuery` or other utils in a **Nitro context** such\nas event handlers.\n\n:::\n\n## Defining Client Options\n\nWhen using a composable such as `useGraphqlQuery`, behind the scenes it will use\n`$fetch` to make a request to the GraphQL middleware server route. Sometimes\nit's useful to pass some additional context with this request that can then be\nused on the server.\n\nSimilar to [serverOptions](/configuration/server-options), you can create a file\ncalled `graphqlMiddleware.clientOptions.ts` in your `app` directory (usually\n`<rootDir>/app`).\n\n::: code-group\n\n```typescript [~/app/graphqlMiddleware.clientOptions.ts]\nimport { defineGraphqlClientOptions } from 'nuxt-graphql-middleware/client-options'\n\nexport default defineGraphqlClientOptions({})\n```\n\n:::\n\n### Nuxt Layers\n\nThe client options file is also discovered from\n[Nuxt layers](https://nuxt.com/docs/getting-started/layers). The module checks\nall layers in order, starting with the main app. The first layer that contains a\n`graphqlMiddleware.clientOptions` file wins — options from multiple layers are\n**not** merged.\n\n## Defining Client Context\n\nImplement the `buildClientContext()` method to return an object with string\nvalues.\n\n::: code-group\n\n```typescript [~/app/graphqlMiddleware.clientOptions.ts]\nimport { defineGraphqlClientOptions } from 'nuxt-graphql-middleware/client-options'\n\nexport default defineGraphqlClientOptions<{\n language: string\n country: string\n}>({\n buildClientContext() {\n const language = useCurrentLanguage()\n const country = useCurrentCountry()\n return {\n language: language.value,\n country: country.value,\n }\n },\n})\n```\n\n:::\n\n::: info\n\nBy passing a generic in `defineGraphqlClientOptions` you can define the type of\nyour context object.\n\n:::\n\nNow everytime a request to the middleware is made with a composable such as\n`useGraphqlQuery`, the composable will call the `buildClientContext` method to\nget the current context. It then maps each property of the returned object to a\nquery parameter while prefixing the property to prevent collisions with\npotential query parameters from GraphQL variables.\n\nSo for example, when making a GraphQL query like so:\n\n```typescript\nconst data = await useGraphqlQuery('loadProduct', {\n id: '123',\n})\n```\n\nThe composable will make a fetch request to this URL.\n\n`/api/graphql_middleware/loadProduct?id=123&__gqlc_language=en&__gqlc_country=US`\n\nBoth the `language` and `country` properties we returned in the object in\n`buildClientContext()` are appended as prefixed query parameters.\n\n## Using Client Context\n\nOn the server you can then access this client context from within all\n[serverOptions](/configuration/server-options) methods:\n\n::: code-group\n\n```typescript [~/server/graphqlMiddleware.serverOptions.ts]\nimport { defineGraphqlServerOptions } from 'nuxt-graphql-middleware/server-options'\n\nexport default defineGraphqlServerOptions({\n graphqlEndpoint(event, operation, operationName, context) {\n // Use the language from the client context.\n const language = context?.client?.language || 'en'\n return `http://backend_server/${language}/graphql`\n },\n\n serverFetchOptions: function (event, _operation, operationName, context) {\n // Pass the current country as a header when making a request to the\n // GraphQL server.\n return {\n headers: {\n 'x-current-country': context.client?.country || 'US',\n },\n }\n },\n})\n```\n\n:::\n"
49
- },
50
- {
51
- "uri": "docs://configuration/server-options",
52
- "name": "Server Options",
53
- "description": "Configure server-side GraphQL request handling",
54
- "content": "# Server Options\n\nAll dynamic configuration that deals with the server-side requests made to the\nGraphQL server is located in a special runtime file located at\n`~/server/graphqlMiddleware.serverOptions.ts`. This file is bundled together\nwith the nitro build in the .output folder.\n\nCreate a file called `graphqlMiddleware.serverOptions.ts` inside the `serverDir`\nof your Nuxt project. If you didn't specifically override this in your Nuxt\nconfig this will be `./server`.\n\n::: code-group\n\n```typescript [~/server/graphqlMiddleware.serverOptions.ts]\nimport { defineGraphqlServerOptions } from 'nuxt-graphql-middleware/server-options'\n\nexport default defineGraphqlServerOptions({\n // ...\n})\n```\n\n:::\n\n### Nuxt Layers\n\nThe server options file is also discovered from\n[Nuxt layers](https://nuxt.com/docs/getting-started/layers). The module checks\nall layers in order, starting with the main app. The first layer that contains a\n`graphqlMiddleware.serverOptions` file wins — options from multiple layers are\n**not** merged.\n\n## doGraphqlRequest\n\nProvide a custom method that performs the request to the GraphQL server. It\nreceives a single `context` object argument that contains everything required to\nperform the request.\n\nThe method is called in the /api/graphql server handler. It can do the request\nusing `fetch`, `graphql-request` or even a full-fledged library like\n`@apollo/client`.\n\nIf a custom method is provided all other options (such as graphqlEndpoint,\nserverFetchOptions or onServerResponse) are ignored. The return value of the\nmethod is directly returned as the response in the server route.\n\n### Example: Custom fetch with retry\n\nThis example assumes some kind of cookie based token authentication. If the\nrequest fails because of an expired token it will refresh the token and then\nretry the request.\n\n```typescript\nimport { defineGraphqlServerOptions } from 'nuxt-graphql-middleware/server-options'\nimport { refreshToken } from './../helpers'\n\nexport default defineGraphqlServerOptions({\n async doGraphqlRequest({\n event,\n operationName,\n operationDocument,\n variables,\n }) {\n function doRequest(token: string) {\n return $fetch.raw('https://example.com/graphql', {\n method: 'POST',\n ignoreResponseError: true,\n body: {\n query: operationDocument,\n variables,\n operationName,\n },\n headers: {\n token,\n },\n })\n }\n\n // Do the first request.\n const incomingToken = getHeader(event, 'cookie')\n let result = await doRequest(incomingToken)\n\n // If the status is 401 refresh the token.\n if (result.status === 401) {\n const newToken = await refreshToken(incomingToken)\n // Retry the request.\n result = await doRequest(newToken)\n }\n\n // Return the GraphQL response.\n return result._data\n },\n})\n```\n\n## graphqlEndpoint\n\nDynamically set the GraphQL endpoint URL during runtime per request.\n\n```typescript\ntype GraphqlMiddlewareGraphqlEndpointMethod = (\n event?: H3Event,\n operation?: string,\n operationName?: string,\n) => string | Promise<string> | void\n```\n\n### Example: Endpoint based on language\n\nHere we determine the current language from the incoming `Accept-Language`\nheader and use it to target a specific language-prefixed GraphQL endpoint.\n\n```typescript\nimport { defineGraphqlServerOptions } from 'nuxt-graphql-middleware/server-options'\nimport { getHeader } from 'h3'\nimport acceptLanguageParser from 'accept-language-parser'\n\nexport default defineGraphqlServerOptions({\n graphqlEndpoint(event, operation, operationName) {\n // Get accepted languages.\n const acceptLanguage = getHeader('accept-language')\n const languages = acceptLanguageParser.parse(acceptLanguage)\n\n // Use first match or fallback to English.\n const language = languages[0]?.code || 'en'\n return `https://api.example.com/${language}/graphql`\n },\n})\n```\n\n## serverFetchOptions\n\nProvide the options for the ofetch request to the GraphQL server.\n\n```typescript\ntype GraphqlMiddlewareServerFetchOptionsMethod = (\n event?: H3Event,\n operation?: string,\n operationName?: string,\n) => FetchOptions | Promise<FetchOptions>\n```\n\n### Example: Pass cookie from client to GraphQL server\n\n```typescript\nimport { defineGraphqlServerOptions } from 'nuxt-graphql-middleware/server-options'\nimport { getHeader } from 'h3'\n\n// Pass the cookie from the client request to the GraphQL request.\nexport default defineGraphqlServerOptions({\n serverFetchOptions(event, operation, operationName) {\n return {\n headers: {\n Cookie: getHeader(event, 'cookie'),\n },\n }\n },\n})\n```\n\n## onServerResponse\n\nHandle the response from the GraphQL server.\n\nYou can alter the response, add additional properties to the data, get and set\nheaders, etc.\n\n```typescript\ntype GraphqlMiddlewareOnServerResponseMethod = (\n event: H3Event,\n response: FetchResponse<any>,\n operation?: string,\n operationName?: string,\n) => any | Promise<any>\n```\n\n### Example: Pass cookie from client to GraphQL server and add custom property\n\nYou can provide a generic argument (object) to define custom properties added to\nthe response.\n\n```typescript\nimport { defineGraphqlServerOptions } from 'nuxt-graphql-middleware/server-options'\nimport type { H3Event } from 'h3'\nimport type { FetchResponse } from 'ofetch'\n\nexport default defineGraphqlServerOptions<{ __customProperty: string[] }>({\n onServerResponse(event, graphqlResponse) {\n // Set a static header.\n event.node.res.setHeader('x-nuxt-custom-header', 'A custom header value')\n\n // Pass the set-cookie header from the GraphQL response to the client.\n const setCookie = graphqlResponse.headers.get('set-cookie')\n if (setCookie) {\n event.node.res.setHeader('set-cookie', setCookie)\n }\n\n // Add additional properties to the response.\n graphqlResponse._data.__customProperty = ['My', 'values']\n\n // Return the GraphQL response.\n return graphqlResponse._data\n },\n})\n```\n\n## onServerError\n\nHandle a fetch error from the GraphQL request.\n\nNote that errors are only thrown for responses that are not status 200-299. See\nhttps://github.com/unjs/ofetch#%EF%B8%8F-handling-errors for more information.\n\n```typescript\ntype GraphqlMiddlewareOnServerErrorMethod = (\n event: H3Event,\n error: FetchError,\n operation?: string,\n operationName?: string,\n) => any | Promise<any>\n```\n\n### Example: Always return a 200 status to the clients\n\n```typescript\nimport { defineGraphqlServerOptions } from 'nuxt-graphql-middleware/server-options'\nimport type { H3Event } from 'h3'\nimport type { FetchError } from 'ofetch'\n\nexport default defineGraphqlServerOptions({\n onServerError(event, error, operation, operationName) {\n event.setHeader('cache-control', 'no-cache')\n return {\n data: {},\n errors: [error.message],\n }\n },\n})\n```\n"
55
- },
56
- {
57
- "uri": "docs://configuration/module-hooks",
58
- "name": "Module Hooks",
59
- "description": "Use Nuxt hooks to customize module behavior",
60
- "content": "# Module Hooks\n\nYou can hook into the module's build to add or alter the documents.\n\n## `nuxt-graphql-middleware:init`\n\nThis hook is called right before processing the initial set of GraphQL\ndocuments, after all modules have been initialised. It allows you to add\nadditional documents as strings.\n\n### Example in `nuxt.config.ts`\n\n```typescript\nexport default defineNuxtConfig({\n hooks: {\n 'nuxt-graphql-middleware:init': (ctx) => {\n ctx.addDocument(\n 'queryFromHook',\n `query queryFromHook {\n users {\n id\n }\n }`,\n )\n },\n },\n})\n```\n\n### Example in Custom Module\n\n```typescript\nimport { defineNuxtModule, createResolver } from '@nuxt/kit'\nimport { fileURLToPath } from 'url'\nimport { isObjectType } from 'graphql'\n\nconst QUERY = `\nquery loadComments {\n comments {\n ...comment\n }\n}\n`\n\nexport default defineNuxtModule({\n meta: {\n name: 'nuxt-graphql-middleware-playground',\n },\n setup(_options, nuxt) {\n // Resolve files relative to this module.\n const resolver = createResolver(import.meta.url)\n\n nuxt.hooks.hookOnce('nuxt-graphql-middleware:init', (context) => {\n // Make sure the schema contains a required type.\n if (!context.schemaHasType('Comment')) {\n throw new Error('Module requires type \"Comment\" to exist.')\n }\n\n context.addDocument('queryFromModule', QUERY)\n\n // Add a document on disk via its absolute path.\n const filePath = resolver.resolve('./graphql/queryFromDisk.graphql')\n context.addImportFile(filePath)\n\n // Get a GraphQLNamedType from the schema.\n const type = context.schemaGetType('Comment')!\n if (!isObjectType(type)) {\n throw new Error('\"Comment\" should be an object type.')\n }\n\n // Check for existance of certain fields on a type.\n const fields = type.getFields()\n const hasAuthorField = !!fields.author\n\n // Add a fragment with conditional fields.\n context.addDocument(\n 'commentFragmentFromModule',\n `fragment comment on Comment {\n ${hasAuthorField ? 'author' : ''}\n body\n subject\n }`,\n )\n })\n },\n})\n```\n\n## `nuxt-graphql-middleware:build`\n\nThis hook is called whenever the internal state of all GraphQL documents was\nrebuilt. It receives a context object that contains a `output` property\ncontaining the Generator output from\n[graphql-typescript-deluxe](https://github.com/dulnan/graphql-typescript-deluxe).\nIt allows you to access all operations or fragments.\n\n### Example in `nuxt.config.ts`\n\n```typescript\nexport default defineNuxtConfig({\n hooks: {\n 'nuxt-graphql-middleware:build': (ctx) => {\n const fragments = ctx.output.getFragments()\n console.log('Collected Fragments')\n fragments.forEach((v) => {\n // v.node contains the FragmentDefinitionNode from 'graphql'.\n console.log(v.node.name.value)\n })\n },\n },\n})\n```\n"
61
- },
62
- {
63
- "uri": "docs://configuration/module-utils",
64
- "name": "Module Utils",
65
- "description": "Utility functions for working with the module",
66
- "content": "# Module Utils\n\nThese utils can be imported from `nuxt-graphql-middleware/utils`.\n\n::: warning\n\nThese utils can **only** be used in other modules. Importing them in any other\nplace will not work.\n\n:::\n\n## `useGraphqlModuleContext()`\n\nThis util exposes the `ModuleContext` instance of `nuxt-graphql-middleware`.\nIt's the same instance also available from [hooks](/configuration/module-hooks).\n\n### Example\n\nIn this example the module conditionally enables features based on the existance\nof certain types and fields in the schema.\n\n```typescript\nimport { defineNuxtModule } from '@nuxt/kit'\nimport { useGraphqlModuleContext } from 'nuxt-graphql-middleware/utils'\nimport { isObjectType } from 'graphql'\n\ntype Feature = 'comments' | 'blog' | 'analytics'\n\nexport default defineNuxtModule({\n meta: {\n name: 'my-custom-module',\n },\n setup(_options, nuxt) {\n const enabledFeatures: Feature[] = []\n\n const context = useGraphqlModuleContext()\n\n // Feature is available if this type exists.\n if (context.schemaHasType('Comment')) {\n enabledFeatures.push('comments')\n }\n\n // Feature is available if a mutation called \"trackPageView\" exists.\n const Mutation = context.schemaGetType('Mutation')\n if (isObjectType(Mutation)) {\n const fields = Mutation.getFields()\n if (fields.trackPageView) {\n enabledFeatures.push('analytics')\n }\n }\n },\n})\n```\n"
67
- },
68
- {
69
- "uri": "docs://configuration/runtime-config",
70
- "name": "Runtime Config",
71
- "description": "Configure runtime settings via Nuxt runtime config",
72
- "content": "# Runtime Config\n\nThe following\n[runtime config](https://nuxt.com/docs/4.x/guide/going-further/runtime-config)\nare provided by the module:\n\n## GraphQL Endpoint\n\nAllows you to set or override the\n[`graphqlEndpoint`](/configuration/module#graphqlendpoint) option.\n\nYou can set the GraphQL endpoint to use by setting the\n`NUXT_GRAPHQL_MIDDLEWARE_GRAPHQL_ENDPOINT` environment variable:\n\n```bash\nNUXT_GRAPHQL_MIDDLEWARE_GRAPHQL_ENDPOINT=http://example.com/graphql\n```\n\nThis is used to _download the schema_ in **dev mode**. A\n[`graphqlEndpoint`](/configuration/server-options#graphqlendpoint) method\nprovided by your server options will take precedence when _making GraphQL\nqueries_. If no method exists, then the value of the environment variable is\nalso used at runtime (e.g. running the Nuxt build).\n"
73
- }
74
- ]
@@ -1,27 +0,0 @@
1
- /*
2
- * @see [Documentation](https://nuxt-graphql-middleware.dulnan.net/advanced/templates#nitro)
3
- */
4
- import type { GraphqlResponse } from './response'
5
- import type {
6
- EntriesQuery,
7
- EntryQuery,
8
- OrgSchemaQuery,
9
- SiteConfigQuery
10
- } from './../graphql-operations'
11
-
12
- declare module 'nitropack/types' {
13
- interface InternalApi {
14
- '/gql/query/Entries': {
15
- 'get': GraphqlResponse<EntriesQuery>
16
- }
17
- '/gql/query/Entry': {
18
- 'get': GraphqlResponse<EntryQuery>
19
- }
20
- '/gql/query/OrgSchema': {
21
- 'get': GraphqlResponse<OrgSchemaQuery>
22
- }
23
- '/gql/query/SiteConfig': {
24
- 'get': GraphqlResponse<SiteConfigQuery>
25
- }
26
- }
27
- }
@@ -1,6 +0,0 @@
1
- /*
2
- * @see [Documentation](https://nuxt-graphql-middleware.dulnan.net/advanced/templates#operation-hashes)
3
- */
4
- declare module '#nuxt-graphql-middleware/operation-hashes' {
5
- export const operationHashes: Record<string, string>;
6
- }
@@ -1,46 +0,0 @@
1
- /*
2
- * @see [Documentation](https://nuxt-graphql-middleware.dulnan.net/advanced/templates#operation-types)
3
- */
4
- import type {
5
- EntriesQuery,
6
- EntriesQueryVariables,
7
- EntryQuery,
8
- EntryQueryVariables,
9
- OrgSchemaQuery,
10
- OrgSchemaQueryVariables,
11
- SiteConfigQuery,
12
- SiteConfigQueryVariables
13
- } from './../graphql-operations'
14
-
15
- export type Query = {
16
- Entries: {
17
- response: EntriesQuery,
18
- variables: EntriesQueryVariables,
19
- needsVariables: true
20
- };
21
- Entry: {
22
- response: EntryQuery,
23
- variables: EntryQueryVariables,
24
- needsVariables: true
25
- };
26
- OrgSchema: {
27
- response: OrgSchemaQuery,
28
- variables: OrgSchemaQueryVariables,
29
- needsVariables: true
30
- };
31
- SiteConfig: {
32
- response: SiteConfigQuery,
33
- variables: SiteConfigQueryVariables,
34
- needsVariables: false
35
- }
36
- }
37
-
38
- export type Mutation = {}
39
-
40
- export type Subscription = {}
41
-
42
- export type Operations = {
43
- query: Query,
44
- mutation: Mutation,
45
- subscription: Subscription,
46
- }
@@ -1,4 +0,0 @@
1
- /*
2
- * @see [Documentation](https://nuxt-graphql-middleware.dulnan.net/advanced/templates#operation-types)
3
- */
4
- export {}
@@ -1,4 +0,0 @@
1
- /*
2
- * @see [Documentation](https://nuxt-graphql-middleware.dulnan.net/advanced/templates#operation-variables)
3
- */
4
- export declare const operationVariables: Record<string, string[]>
@@ -1,29 +0,0 @@
1
- /*
2
- * @see [Documentation](https://nuxt-graphql-middleware.dulnan.net/advanced/templates#operation-variables)
3
- */
4
- export const operationVariables = {
5
- "Entries": [
6
- "excludeIds",
7
- "limit",
8
- "offset",
9
- "orderBy",
10
- "relatedTo",
11
- "relatedToEntries",
12
- "search",
13
- "section",
14
- "type"
15
- ],
16
- "Entry": [
17
- "hasDescendants",
18
- "level",
19
- "section",
20
- "site",
21
- "slug",
22
- "type",
23
- "uri"
24
- ],
25
- "OrgSchema": [
26
- "site"
27
- ],
28
- "SiteConfig": []
29
- }
@@ -1,22 +0,0 @@
1
- /*
2
- * @see [Documentation](https://nuxt-graphql-middleware.dulnan.net/advanced/templates#response)
3
- */
4
- import type {
5
- EntriesQuery,
6
- EntryQuery,
7
- OrgSchemaQuery,
8
- SiteConfigQuery
9
- } from './../graphql-operations'
10
- import type { GraphqlResponseAdditions } from './server-options'
11
- import type { GraphqlServerResponse } from '../../../../../../node_modules/.pnpm/nuxt-graphql-middleware@5.4.0_@parcel+watcher@2.5.6_@types+node@26.1.2_crossws@0.3.5_gr_8fe58dc693672128ff08154465028eed/node_modules/nuxt-graphql-middleware/dist/runtime/types.ts'
12
-
13
- declare module '#nuxt-graphql-middleware/response' {
14
- export type GraphqlMiddlewareResponseUnion =
15
- | EntriesQuery
16
- | EntryQuery
17
- | OrgSchemaQuery
18
- | SiteConfigQuery
19
-
20
- export type GraphqlResponse<T> = GraphqlServerResponse<T> & GraphqlResponseAdditions
21
- export type GraphqlResponseTyped = GraphqlResponse<GraphqlMiddlewareResponseUnion>
22
- }
@@ -1,11 +0,0 @@
1
- /*
2
- * @see [Documentation](https://nuxt-graphql-middleware.dulnan.net/advanced/templates#server-options)
3
- */
4
- import type { GraphqlMiddlewareServerOptions } from '../../../../../../node_modules/.pnpm/nuxt-graphql-middleware@5.4.0_@parcel+watcher@2.5.6_@types+node@26.1.2_crossws@0.3.5_gr_8fe58dc693672128ff08154465028eed/node_modules/nuxt-graphql-middleware/dist/runtime/types.ts'
5
- import serverOptionsImport from '../../../../../layer-craft/server/graphqlMiddleware.serverOptions.ts'
6
-
7
- type AdditionsFromServerOptions = typeof serverOptionsImport extends GraphqlMiddlewareServerOptions<infer R, any, any> ? R : {}
8
-
9
- export type GraphqlResponseAdditions = Omit<AdditionsFromServerOptions, 'data' | 'errors'>
10
-
11
- export declare const serverOptions: GraphqlMiddlewareServerOptions
@@ -1,5 +0,0 @@
1
- /*
2
- * @see [Documentation](https://nuxt-graphql-middleware.dulnan.net/advanced/templates#server-options)
3
- */
4
- import serverOptions from '../../../../../layer-craft/server/graphqlMiddleware.serverOptions.ts'
5
- export { serverOptions }
@@ -1,4 +0,0 @@
1
- /*
2
- * @see [Documentation](https://nuxt-graphql-middleware.dulnan.net/advanced/templates#sources)
3
- */
4
- export declare const operationSources: Record<string, string>
@@ -1,9 +0,0 @@
1
- /*
2
- * @see [Documentation](https://nuxt-graphql-middleware.dulnan.net/advanced/templates#sources)
3
- */
4
- export const operationSources = {
5
- query_Entries: 'queries/Entries.gql',
6
- query_Entry: 'queries/Entry.gql',
7
- query_OrgSchema: 'queries/OrgSchema.gql',
8
- query_SiteConfig: 'queries/SiteConfig.gql',
9
- }
@@ -1,57 +0,0 @@
1
- /**
2
- * Whether debug mode is enabled at build time.
3
- */
4
- export declare const debug: boolean
5
-
6
- /**
7
- * Whether the CDN feature is enabled at build time.
8
- *
9
- * The feature may still be disabled at runtime via runtime config.
10
- */
11
- export declare const cdnEnabled: boolean
12
-
13
- /**
14
- * The CDN cache control header name.
15
- */
16
- export declare const cdnCacheControlHeader: string
17
-
18
- /**
19
- * The CDN cache tag header name.
20
- */
21
- export declare const cdnCacheTagHeader: string
22
-
23
- /**
24
- * Whether the route cache is enabled at build time.
25
- *
26
- * The cache may still be disabled at runtime via runtime config.
27
- */
28
- export declare const routeCacheEnabled: boolean
29
-
30
- /**
31
- * Whether the component cache is enabled at build time.
32
- *
33
- * The cache may still be disabled at runtime via runtime config.
34
- */
35
- export declare const componentCacheEnabled: boolean
36
-
37
- /**
38
- * Whether the data cache is enabled at build time.
39
- *
40
- * The cache may still be disabled at runtime via runtime config.
41
- */
42
- export declare const dataCacheEnabled: boolean
43
-
44
- /**
45
- * The delay in milliseconds before invalidating cache tags.
46
- */
47
- export declare const cacheTagInvalidationDelay: number
48
-
49
- /**
50
- * Whether the cache overview should be logged to the console.
51
- */
52
- export declare const shouldLogCacheOverview: boolean
53
-
54
- /**
55
- * Alias for import.meta.server, used for mocking in tests.
56
- */
57
- export declare const isServer: boolean
@@ -1,10 +0,0 @@
1
- export const debug = false
2
- export const cdnCacheControlHeader = import.meta.server ? "Surrogate-Control" : ''
3
- export const cdnCacheTagHeader = import.meta.server ? "Cache-Tag" : ''
4
- export const cdnEnabled = false
5
- export const routeCacheEnabled = false
6
- export const componentCacheEnabled = false
7
- export const dataCacheEnabled = true
8
- export const shouldLogCacheOverview = false
9
- export const cacheTagInvalidationDelay = 3000
10
- export const isServer = import.meta.server
@@ -1,46 +0,0 @@
1
- import type {
2
- CachePurgeItemResponse,
3
- CacheStatsResponse,
4
- CachePurgeAllResponse,
5
- CachePurgeTagsResponse,
6
- DataCacheItem,
7
- ComponentCacheItem
8
- } from '../../../../../../node_modules/.pnpm/nuxt-multi-cache@4.0.3/node_modules/nuxt-multi-cache/dist/runtime/types.ts'
9
-
10
- declare module 'nitropack/types' {
11
- interface InternalApi {
12
- '/__nuxt_multi_cache/inspect/component': {
13
- 'get': ComponentCacheItem
14
- }
15
- '/__nuxt_multi_cache/inspect/data': {
16
- 'get': DataCacheItem
17
- }
18
- '/__nuxt_multi_cache/inspect/route': {
19
- 'get': string
20
- }
21
- '/__nuxt_multi_cache/purge/all': {
22
- 'post': CachePurgeAllResponse
23
- }
24
- '/__nuxt_multi_cache/purge/component': {
25
- 'post': CachePurgeItemResponse
26
- }
27
- '/__nuxt_multi_cache/purge/data': {
28
- 'post': CachePurgeItemResponse
29
- }
30
- '/__nuxt_multi_cache/purge/route': {
31
- 'post': CachePurgeItemResponse
32
- }
33
- '/__nuxt_multi_cache/purge/tags': {
34
- 'post': CachePurgeTagsResponse
35
- }
36
- '/__nuxt_multi_cache/stats/component': {
37
- 'get': CacheStatsResponse<ComponentCacheItem>
38
- }
39
- '/__nuxt_multi_cache/stats/data': {
40
- 'get': CacheStatsResponse<DataCacheItem>
41
- }
42
- '/__nuxt_multi_cache/stats/route': {
43
- 'get': CacheStatsResponse<string>
44
- }
45
- }
46
- }
@@ -1,3 +0,0 @@
1
- import type { MultiCacheServerOptions } from '../../../../../../node_modules/.pnpm/nuxt-multi-cache@4.0.3/node_modules/nuxt-multi-cache/dist/runtime/types.ts'
2
-
3
- export declare const serverOptions: MultiCacheServerOptions
@@ -1,2 +0,0 @@
1
- const serverOptions = {}
2
- export { serverOptions }
@@ -1,59 +0,0 @@
1
- /// <reference types="@nuxt/scripts" />
2
- /// <reference types="@nuxt/fonts" />
3
- /// <reference types="@nuxtjs/i18n" />
4
- /// <reference types="@nuxt/eslint" />
5
- /// <reference types="@nuxtjs/seo" />
6
- /// <reference types="@nuxt/image" />
7
- /// <reference types="gsap-nuxt-module" />
8
- /// <reference types="@vueuse/nuxt" />
9
- /// <reference types="@studio-fes/layer-craft" />
10
- /// <reference types="nuxt-svgo" />
11
- /// <reference types="@unocss/nuxt" />
12
- /// <reference types="nuxt-graphql-middleware" />
13
- /// <reference types="nuxt-multi-cache" />
14
- /// <reference types="@nuxt/telemetry" />
15
- /// <reference types="@nuxt/devtools" />
16
- /// <reference path="types/nitro-layouts.d.ts" />
17
- /// <reference path="types/builder-env.d.ts" />
18
- /// <reference path="types/plugins.d.ts" />
19
- /// <reference path="types/build.d.ts" />
20
- /// <reference path="types/app.config.d.ts" />
21
- /// <reference path="types/runtime-config.d.ts" />
22
- /// <reference types="nuxt/app" />
23
- /// <reference path="../../../../../node_modules/.pnpm/@nuxt+nitro-server@4.5.1_824d7c26519f2d4371c607b8b7648510/node_modules/@nuxt/nitro-server/dist/augments.d.mts" />
24
- /// <reference path="image/providers.d.ts" />
25
- /// <reference path="types/i18n-plugin.d.ts" />
26
- /// <reference path="nuxt-graphql-middleware/client-options.d.ts" />
27
- /// <reference path="nuxt-graphql-middleware/config.d.ts" />
28
- /// <reference path="nuxt-graphql-middleware/graphql.config.d.ts" />
29
- /// <reference path="nuxt-graphql-middleware/helpers.d.ts" />
30
- /// <reference path="nuxt-graphql-middleware/hook-files.d.ts" />
31
- /// <reference path="nuxt-graphql-middleware/operation-hashes.d.ts" />
32
- /// <reference path="nuxt-graphql-middleware/operation-types.d.ts" />
33
- /// <reference path="graphql-operations/index.d.ts" />
34
- /// <reference path="nuxt-graphql-middleware/response.d.ts" />
35
- /// <reference path="nuxt-graphql-middleware/server-options.d.ts" />
36
- /// <reference path="nuxt-graphql-middleware/sources.d.ts" />
37
- /// <reference path="nuxt-multi-cache/server-options.d.ts" />
38
- /// <reference path="nuxt-multi-cache/nitro.d.ts" />
39
- /// <reference path="nuxt-multi-cache/config.d.ts" />
40
- /// <reference path="types/layouts.d.ts" />
41
- /// <reference types="vue-router" />
42
- /// <reference path="types/middleware.d.ts" />
43
- /// <reference path="types/nitro-middleware.d.ts" />
44
- /// <reference path="types/components.d.ts" />
45
- /// <reference path="imports.d.ts" />
46
- /// <reference path="types/imports.d.ts" />
47
- /// <reference path="schema/nuxt.schema.d.ts" />
48
- /// <reference path="module/nuxt-site-config.d.ts" />
49
- /// <reference path="types/nuxt-robots-nuxt.d.ts" />
50
- /// <reference path="types/nuxt-robots-nitro.d.ts" />
51
- /// <reference path="types/nuxt-sitemap-augments.d.ts" />
52
- /// <reference path="module/nuxt-schema-org.d.ts" />
53
- /// <reference path="module/nuxt-seo-utils.assets.d.ts" />
54
- /// <reference path="module/nuxt-seo-utils.d.ts" />
55
- /// <reference path="types/nuxt-scripts-augments.d.ts" />
56
- /// <reference path="types/nitro.d.ts" />
57
- /// <reference path="./eslint-typegen.d.ts" />
58
-
59
- export {}
@@ -1,29 +0,0 @@
1
- /// <reference types="@nuxt/scripts" />
2
- /// <reference types="@nuxt/fonts" />
3
- /// <reference types="@nuxtjs/i18n" />
4
- /// <reference types="@nuxt/eslint" />
5
- /// <reference types="@nuxtjs/seo" />
6
- /// <reference types="@nuxt/image" />
7
- /// <reference types="gsap-nuxt-module" />
8
- /// <reference types="@vueuse/nuxt" />
9
- /// <reference types="@studio-fes/layer-craft" />
10
- /// <reference types="nuxt-svgo" />
11
- /// <reference types="@unocss/nuxt" />
12
- /// <reference types="nuxt-graphql-middleware" />
13
- /// <reference types="nuxt-multi-cache" />
14
- /// <reference types="@nuxt/telemetry" />
15
- /// <reference types="@nuxt/devtools" />
16
- /// <reference path="types/nitro-layouts.d.ts" />
17
- /// <reference path="types/modules.d.ts" />
18
- /// <reference path="types/runtime-config.d.ts" />
19
- /// <reference path="types/shared-app.config.d.ts" />
20
- /// <reference types="nuxt" />
21
- /// <reference path="../../../../../node_modules/.pnpm/@nuxt+vite-builder@4.5.1_4e2f7835568e74f43baa2e06695fc625/node_modules/@nuxt/vite-builder/dist/index.d.mts" />
22
- /// <reference path="../../../../../node_modules/.pnpm/@nuxt+nitro-server@4.5.1_824d7c26519f2d4371c607b8b7648510/node_modules/@nuxt/nitro-server/dist/augments.d.mts" />
23
- /// <reference path="eslint-typegen.d.ts" />
24
- /// <reference path="image/providers.d.ts" />
25
- /// <reference path="types/nitro-middleware.d.ts" />
26
- /// <reference path="schema/nuxt.schema.d.ts" />
27
- /// <reference path="types/nuxt-robots-nitro.d.ts" />
28
-
29
- export {}
@@ -1,8 +0,0 @@
1
- /// <reference path="../../../../../node_modules/.pnpm/@nuxt+nitro-server@4.5.1_824d7c26519f2d4371c607b8b7648510/node_modules/@nuxt/nitro-server/dist/augments.d.mts" />
2
- /// <reference path="types/runtime-config.d.ts" />
3
- /// <reference path="types/shared-app.config.d.ts" />
4
- /// <reference path="types/shared-imports.d.ts" />
5
- /// <reference path="image/providers.d.ts" />
6
- /// <reference path="schema/nuxt.schema.d.ts" />
7
-
8
- export {}
@@ -1,17 +0,0 @@
1
- export interface NuxtCustomSchema {
2
-
3
- }
4
- export type CustomAppConfig = Exclude<NuxtCustomSchema['appConfig'], undefined>
5
- type _CustomAppConfig = CustomAppConfig
6
-
7
- declare module '@nuxt/schema' {
8
- interface NuxtConfig extends Omit<NuxtCustomSchema, 'appConfig'> {}
9
- interface NuxtOptions extends Omit<NuxtCustomSchema, 'appConfig'> {}
10
- interface CustomAppConfig extends _CustomAppConfig {}
11
- }
12
-
13
- declare module 'nuxt/schema' {
14
- interface NuxtConfig extends Omit<NuxtCustomSchema, 'appConfig'> {}
15
- interface NuxtOptions extends Omit<NuxtCustomSchema, 'appConfig'> {}
16
- interface CustomAppConfig extends _CustomAppConfig {}
17
- }
@@ -1,3 +0,0 @@
1
- {
2
- "id": "#"
3
- }