@conloca/cloud-astro 0.2.4 → 0.2.6

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 (171) hide show
  1. package/README.md +69 -22
  2. package/dist/.build-inputs.json +36 -23
  3. package/dist/src/constants.d.ts +4 -4
  4. package/dist/src/constants.js +4 -4
  5. package/dist/src/d3-build.d.ts +6 -2
  6. package/dist/src/d3-build.d.ts.map +1 -1
  7. package/dist/src/d3-build.js +15 -11
  8. package/dist/src/d3-build.js.map +1 -1
  9. package/dist/src/d8-adapters.d.ts +10 -0
  10. package/dist/src/d8-adapters.d.ts.map +1 -0
  11. package/dist/src/d8-adapters.js +19 -0
  12. package/dist/src/d8-adapters.js.map +1 -0
  13. package/dist/src/d8-build.d.ts +99 -0
  14. package/dist/src/d8-build.d.ts.map +1 -0
  15. package/dist/src/d8-build.js +265 -0
  16. package/dist/src/d8-build.js.map +1 -0
  17. package/dist/src/d8-guards.d.ts +29 -0
  18. package/dist/src/d8-guards.d.ts.map +1 -0
  19. package/dist/src/d8-guards.js +145 -0
  20. package/dist/src/d8-guards.js.map +1 -0
  21. package/dist/src/d8-middleware.d.ts +7 -0
  22. package/dist/src/d8-middleware.d.ts.map +1 -0
  23. package/dist/src/d8-middleware.js +15 -0
  24. package/dist/src/d8-middleware.js.map +1 -0
  25. package/dist/src/d8-render.d.ts +9 -0
  26. package/dist/src/d8-render.d.ts.map +1 -0
  27. package/dist/src/d8-render.js +52 -0
  28. package/dist/src/d8-render.js.map +1 -0
  29. package/dist/src/doctor/checks-d8.d.ts +7 -0
  30. package/dist/src/doctor/checks-d8.d.ts.map +1 -0
  31. package/dist/src/doctor/checks-d8.js +240 -0
  32. package/dist/src/doctor/checks-d8.js.map +1 -0
  33. package/dist/src/doctor/checks-live.d.ts.map +1 -1
  34. package/dist/src/doctor/checks-live.js +3 -5
  35. package/dist/src/doctor/checks-live.js.map +1 -1
  36. package/dist/src/doctor/checks-offline.d.ts +2 -0
  37. package/dist/src/doctor/checks-offline.d.ts.map +1 -1
  38. package/dist/src/doctor/checks-offline.js +17 -8
  39. package/dist/src/doctor/checks-offline.js.map +1 -1
  40. package/dist/src/doctor/checks-preview-live.d.ts +7 -2
  41. package/dist/src/doctor/checks-preview-live.d.ts.map +1 -1
  42. package/dist/src/doctor/checks-preview-live.js +107 -7
  43. package/dist/src/doctor/checks-preview-live.js.map +1 -1
  44. package/dist/src/doctor/checks-preview.d.ts.map +1 -1
  45. package/dist/src/doctor/checks-preview.js +9 -4
  46. package/dist/src/doctor/checks-preview.js.map +1 -1
  47. package/dist/src/doctor/config-scan.d.ts +24 -6
  48. package/dist/src/doctor/config-scan.d.ts.map +1 -1
  49. package/dist/src/doctor/config-scan.js +89 -18
  50. package/dist/src/doctor/config-scan.js.map +1 -1
  51. package/dist/src/doctor/run.d.ts.map +1 -1
  52. package/dist/src/doctor/run.js +2 -0
  53. package/dist/src/doctor/run.js.map +1 -1
  54. package/dist/src/doctor/types.d.ts +7 -0
  55. package/dist/src/doctor/types.d.ts.map +1 -1
  56. package/dist/src/doctor/types.js +7 -0
  57. package/dist/src/doctor/types.js.map +1 -1
  58. package/dist/src/editor-page/emit.d.ts +4 -3
  59. package/dist/src/editor-page/emit.d.ts.map +1 -1
  60. package/dist/src/editor-page/emit.js +9 -9
  61. package/dist/src/editor-page/emit.js.map +1 -1
  62. package/dist/src/integration.d.ts.map +1 -1
  63. package/dist/src/integration.js +228 -124
  64. package/dist/src/integration.js.map +1 -1
  65. package/dist/src/node.d.ts +2 -0
  66. package/dist/src/node.d.ts.map +1 -1
  67. package/dist/src/node.js +4 -0
  68. package/dist/src/node.js.map +1 -1
  69. package/dist/src/preview/_resolve-opts.d.ts +26 -1
  70. package/dist/src/preview/_resolve-opts.d.ts.map +1 -1
  71. package/dist/src/preview/_resolve-opts.js.map +1 -1
  72. package/dist/src/preview/content-api.d.ts +15 -0
  73. package/dist/src/preview/content-api.d.ts.map +1 -1
  74. package/dist/src/preview/content-api.js +57 -6
  75. package/dist/src/preview/content-api.js.map +1 -1
  76. package/dist/src/preview/d8-middleware.d.ts +25 -0
  77. package/dist/src/preview/d8-middleware.d.ts.map +1 -0
  78. package/dist/src/preview/d8-middleware.js +94 -0
  79. package/dist/src/preview/d8-middleware.js.map +1 -0
  80. package/dist/src/preview/dispatcher.d.ts +3 -16
  81. package/dist/src/preview/dispatcher.d.ts.map +1 -1
  82. package/dist/src/preview/dispatcher.js +46 -134
  83. package/dist/src/preview/dispatcher.js.map +1 -1
  84. package/dist/src/preview/headers.d.ts +3 -0
  85. package/dist/src/preview/headers.d.ts.map +1 -1
  86. package/dist/src/preview/headers.js +10 -1
  87. package/dist/src/preview/headers.js.map +1 -1
  88. package/dist/src/preview/links.d.ts +23 -0
  89. package/dist/src/preview/links.d.ts.map +1 -0
  90. package/dist/src/preview/links.js +168 -0
  91. package/dist/src/preview/links.js.map +1 -0
  92. package/dist/src/preview/middleware.d.ts +9 -3
  93. package/dist/src/preview/middleware.d.ts.map +1 -1
  94. package/dist/src/preview/middleware.js +36 -16
  95. package/dist/src/preview/middleware.js.map +1 -1
  96. package/dist/src/preview/prefix-router.d.ts +67 -0
  97. package/dist/src/preview/prefix-router.d.ts.map +1 -0
  98. package/dist/src/preview/prefix-router.js +153 -0
  99. package/dist/src/preview/prefix-router.js.map +1 -0
  100. package/dist/src/preview/preview-path.d.ts +8 -3
  101. package/dist/src/preview/preview-path.d.ts.map +1 -1
  102. package/dist/src/preview/preview-path.js +16 -4
  103. package/dist/src/preview/preview-path.js.map +1 -1
  104. package/dist/src/preview/site-middleware.d.ts +8 -2
  105. package/dist/src/preview/site-middleware.d.ts.map +1 -1
  106. package/dist/src/preview/site-middleware.js +90 -31
  107. package/dist/src/preview/site-middleware.js.map +1 -1
  108. package/dist/src/preview/site-page-sources.d.ts +21 -0
  109. package/dist/src/preview/site-page-sources.d.ts.map +1 -0
  110. package/dist/src/preview/site-page-sources.js +129 -0
  111. package/dist/src/preview/site-page-sources.js.map +1 -0
  112. package/dist/src/preview/site-pages.d.ts +18 -0
  113. package/dist/src/preview/site-pages.d.ts.map +1 -0
  114. package/dist/src/preview/site-pages.js +7 -0
  115. package/dist/src/preview/site-pages.js.map +1 -0
  116. package/dist/src/preview-build.d.ts +17 -16
  117. package/dist/src/preview-build.d.ts.map +1 -1
  118. package/dist/src/preview-build.js +37 -40
  119. package/dist/src/preview-build.js.map +1 -1
  120. package/dist/src/preview-image-endpoint.d.ts +8 -0
  121. package/dist/src/preview-image-endpoint.d.ts.map +1 -0
  122. package/dist/src/preview-image-endpoint.js +34 -0
  123. package/dist/src/preview-image-endpoint.js.map +1 -0
  124. package/dist/src/preview-render-seams.d.ts +7 -0
  125. package/dist/src/preview-render-seams.d.ts.map +1 -0
  126. package/dist/src/preview-render-seams.js +27 -0
  127. package/dist/src/preview-render-seams.js.map +1 -0
  128. package/dist/src/site-middleware.d.ts +2 -4
  129. package/dist/src/site-middleware.d.ts.map +1 -1
  130. package/dist/src/site-middleware.js +6 -22
  131. package/dist/src/site-middleware.js.map +1 -1
  132. package/dist/src/types.d.ts +15 -16
  133. package/dist/src/types.d.ts.map +1 -1
  134. package/package.json +138 -6
  135. package/src/constants.ts +4 -4
  136. package/src/d3-build.ts +20 -14
  137. package/src/d8-adapters.ts +19 -0
  138. package/src/d8-build.ts +356 -0
  139. package/src/d8-guards.ts +177 -0
  140. package/src/d8-middleware.ts +17 -0
  141. package/src/d8-render.ts +61 -0
  142. package/src/doctor/checks-d8.ts +256 -0
  143. package/src/doctor/checks-live.ts +3 -4
  144. package/src/doctor/checks-offline.ts +21 -8
  145. package/src/doctor/checks-preview-live.ts +114 -8
  146. package/src/doctor/checks-preview.ts +9 -4
  147. package/src/doctor/config-scan.ts +86 -15
  148. package/src/doctor/run.ts +2 -0
  149. package/src/doctor/types.ts +8 -0
  150. package/src/editor-page/emit.ts +23 -14
  151. package/src/integration.ts +274 -135
  152. package/src/node.ts +4 -0
  153. package/src/preview/_resolve-opts.ts +17 -1
  154. package/src/preview/content-api.ts +60 -5
  155. package/src/preview/d8-middleware.ts +124 -0
  156. package/src/preview/dispatcher.ts +55 -150
  157. package/src/preview/headers.ts +10 -1
  158. package/src/preview/links.ts +175 -0
  159. package/src/preview/middleware.ts +41 -19
  160. package/src/preview/prefix-router.ts +197 -0
  161. package/src/preview/preview-path.ts +24 -6
  162. package/src/preview/site-middleware.ts +109 -38
  163. package/src/preview/site-page-sources.ts +146 -0
  164. package/src/preview/site-pages.ts +22 -0
  165. package/src/preview-build.ts +43 -42
  166. package/src/preview-image-endpoint.ts +35 -0
  167. package/src/preview-render-seams.ts +31 -0
  168. package/src/site-middleware.ts +6 -24
  169. package/src/skill/SKILL.md +19 -1
  170. package/src/types.ts +15 -16
  171. package/src/virtual-modules.d.ts +17 -2
@@ -1,17 +1,19 @@
1
+ import { existsSync, readFileSync, writeFileSync } from 'node:fs';
1
2
  import { createRequire } from 'node:module';
2
3
  import { fileURLToPath } from 'node:url';
3
4
  import { readEditorDescriptors } from '@conloca/astro-cms/node';
4
5
  import { DEFAULT_EDITOR_ENDPOINT, editorUiOrigin } from '@conloca/content-api/editor-host';
5
6
  import { PACKAGE_NAME, PREVIEW_BUILD_ENV_FLAG } from './constants.js';
6
- import { finishD3Build, onDemandPatterns, workerFirstPattern, writePreviewRoutes } from './d3-build.js';
7
- import { emitEditorPage, emitPreviewServerInfo, mirrorEditorPage } from './editor-page/emit.js';
8
- import { gitOutput, resolveBuildRef, resolveRepositoryUri } from './git.js';
7
+ import { finishD3Build, onDemandPatterns, workerFirstPattern, writePreviewRoutes, writeWorkerFirst, } from './d3-build.js';
8
+ import { bakedIdentity, bakedMedia, bakesMedia, cloudflareD8Problems, d8Baked, d8ImageEndpoint, hasOnDemandRoutes, knownImageService, narrowVercelCatchAll, previewPageHandlerPath, siteOnDemand, sitePagesOf, writeSitePagesList, } from './d8-build.js';
9
+ import { adapterMiddlewareMode, D8_EDGE_REFUSAL, d8ConfigRefusal, d8EdgeRefusal, d8IsrRefusal, darkenIsrPrefix, readAstroConfigText, vercelIsrCatchesPrefix, } from './d8-guards.js';
10
+ import { emitEditorPage, emitPreviewServerInfo } from './editor-page/emit.js';
11
+ import { resolveRepositoryUri } from './git.js';
9
12
  import { messageOf } from './message-of.js';
10
13
  import { cloudflareAdapter, resolveCloudflareAdapter } from './preview/cloudflare-adapter.js';
11
- import { normalizeTrailingSlash, PREVIEW_ROUTE_SEGMENT } from './preview/preview-path.js';
14
+ import { imageEndpointEntry, normalizeTrailingSlash, PREVIEW_ROUTE_SEGMENT, previewOwnEntries, } from './preview/preview-path.js';
12
15
  import { prerenderedKey, previewBuildMode, previewChildMode, previewChildPrerendered, spawnPreviewBuild, } from './preview-build.js';
13
16
  import { resolveInheritedOptions } from './resolve-options.js';
14
- import { resolveBuildSiteId } from './site-id.js';
15
17
  import { scaffoldSkill } from './skill.js';
16
18
  // Re-export the constants that moved out of this module when the preview
17
19
  // wiring broke the circular import. Public callers (and tests) import them
@@ -27,11 +29,11 @@ export { PACKAGE_NAME, PREVIEW_BUILD_ENV_FLAG };
27
29
  * 0. Write the editor page to `dist/_conloca/editor/`: `index.html`, the
28
30
  * site's compiled puck config and styles, the MDX sandbox frame and
29
31
  * `conloca.json`. Every build does this; the page carries no credential.
30
- * 1. Only when `previewBuild` is given as an object: D2 spawns the recursive preview build and mirrors the editor
31
- * page into its client folder; D3 spawns it next to the static site and writes the dispatcher (`d3-build.ts`),
32
- * failing the build when a failed preview build would leave the site's own on-demand routes unserved; D4 builds
33
- * it in a separate deploy, not here. The preview build mounts `/_conloca/preview/` and bakes in the repository,
34
- * site and branch it serves (every pass must match them), Astro's base and the commit it was built from.
32
+ * 1. Only when `previewBuild` is given as an object: D3 spawns the recursive preview build next to the static site
33
+ * and writes the dispatcher (`d3-build.ts`), failing the build when a failed preview build would leave the
34
+ * site's own on-demand routes unserved; D4 builds it in a separate deploy, not here; D8 spawns nothing: config:setup
35
+ * mounts `/_conloca/preview/` in the site's own build (`d8-build.ts`). Every preview build bakes in the
36
+ * repository, site and branch it serves (every pass must match them), Astro's base and the commit it was built from.
35
37
  */
36
38
  const VIRTUAL_PREVIEW_OPTS = 'virtual:conloca-preview-opts';
37
39
  const RESOLVED_PREVIEW_OPTS = `\0${VIRTUAL_PREVIEW_OPTS}`;
@@ -52,12 +54,8 @@ export function conlocaCloud(options = {}) {
52
54
  let astroCommand;
53
55
  // The project root, captured in config:setup: astro:build:done only hands
54
56
  // over the build's own outDir, but the siteStyles resolve against the root,
55
- // and locating the CHILD build's client dir (for the editor page mirror)
56
- // needs the root the child resolves against.
57
+ // and locating the preview build's output needs the root it resolves against.
57
58
  let projectRoot;
58
- // Adapter name, finalized only at config:done: the preview build reads it
59
- // when previewBuild names no adapter of its own.
60
- let adapterName;
61
59
  // The site's Vite config, finalized at config:done: the editor page and the
62
60
  // siteStyles compile through it, as they do in conlocaCMS's dev editor. It
63
61
  // holds the site's and integrations' plugins only; Astro adds its own core
@@ -72,20 +70,45 @@ export function conlocaCloud(options = {}) {
72
70
  // The editor options, settled at config:done: conlocaCMS publishes its
73
71
  // channel from its own config:setup, which may run after ours.
74
72
  let inherited;
75
- // Whether the parent build starts the preview build, read with the adapter
76
- // the child will use: previewBuild.adapter, else the project's own.
77
- const previewMode = () => previewBuildMode(options.previewBuild, (options.previewBuild || undefined)?.adapter?.name ?? adapterName);
73
+ // How the site's build serves drafts, settled once in config:setup: an option that cannot work turns preview off
74
+ // for this build with a warning rather than failing the deploy.
75
+ let siteMode = 'off';
78
76
  // Whether the project has no adapter of its own, read in config:setup before the preview build switches to
79
77
  // server output: such a site can use no server islands, so its dispatcher never runs on their route.
80
78
  let projectStatic = false;
79
+ // The site's adapter, read in config:setup: the d8 edge and isr guards depend on it.
80
+ let adapterName;
81
81
  // The routes the preview build renders on demand (astro:routes:resolved), as Astro patterns.
82
82
  let onDemand = [];
83
83
  // The site's build: the routes it prerendered (astro:routes:resolved), handed to a D3 child.
84
84
  let sitePrerendered = [];
85
+ // The site's build: its own on-demand routes (astro:routes:resolved); none means it would be static without preview,
86
+ // undefined that the hook never ran, so nothing is known.
87
+ let siteRoutesOnDemand;
88
+ // d8 moved the image endpoint under the preview route (config:setup): only a site with no on-demand page.
89
+ let imageMoved = false;
90
+ // Where the adapter writes its server build (config:done): the Cloudflare adapter's wrangler.json is there.
91
+ let buildServer;
92
+ // The site's build: its resolved routes (astro:routes:resolved) and config (config:done), for the d8 site-pages list.
93
+ let siteRoutes = [];
94
+ let astroConfig;
85
95
  // A D3 child: the routes its site's build prerendered, which it keeps prerendered (config:setup).
86
96
  let keepPrerendered = new Set();
87
97
  // The preview build's mode (config:setup): a D4 child of a static site has no site build to ask.
88
98
  let childServeMode = 'd4';
99
+ // Serves the baked options as `virtual:conloca-preview-opts`, read lazily so the values config:setup bakes are
100
+ // captured.
101
+ const previewOptsPlugin = {
102
+ name: 'conloca-preview-opts',
103
+ resolveId(id) {
104
+ return id === VIRTUAL_PREVIEW_OPTS ? RESOLVED_PREVIEW_OPTS : undefined;
105
+ },
106
+ load(id) {
107
+ if (id !== RESOLVED_PREVIEW_OPTS)
108
+ return undefined;
109
+ return `export default ${JSON.stringify(previewOptsModule ?? {})};`;
110
+ },
111
+ };
89
112
  return {
90
113
  name: PACKAGE_NAME,
91
114
  hooks: {
@@ -94,36 +117,88 @@ export function conlocaCloud(options = {}) {
94
117
  projectRoot = config?.root;
95
118
  astroCommand = command;
96
119
  projectStatic = config?.adapter === undefined;
120
+ adapterName = config?.adapter?.name;
97
121
  // The agent skill: write-if-not-exists, fail-soft, and
98
122
  // never from the recursive preview child (it would race the parent).
99
123
  if (process.env[PREVIEW_BUILD_ENV_FLAG] !== '1' && config?.root) {
100
124
  scaffoldSkill(fileURLToPath(config.root), logger);
101
125
  }
102
126
  logger.info(`integration registered (endpoint=${options.endpoint ?? DEFAULT_EDITOR_ENDPOINT})`);
127
+ if (process.env[PREVIEW_BUILD_ENV_FLAG] !== '1') {
128
+ const previewBuild = options.previewBuild || undefined;
129
+ let mode = 'off';
130
+ try {
131
+ mode = previewBuildMode(previewBuild, config?.adapter?.name, previewBuild?.adapter?.name);
132
+ // §4.6: refused before anything registers, since d8's own middleware is what breaks an edge build.
133
+ if (mode === 'd8' && command === 'build') {
134
+ const text = readAstroConfigText(config.root);
135
+ const name = config.adapter?.name ?? '';
136
+ let refusal = d8ConfigRefusal(text, name, config.base);
137
+ // Only these adapters' config:done merely stores state, so only they may be called out of order.
138
+ if (refusal === null && config.adapter && (name === '@astrojs/vercel' || name === '@astrojs/netlify')) {
139
+ refusal = d8EdgeRefusal(await adapterMiddlewareMode(config.adapter, config), text, name);
140
+ }
141
+ if (refusal !== null) {
142
+ logger.warn(`preview is off for this build: ${refusal}`);
143
+ mode = 'off';
144
+ }
145
+ }
146
+ if (mode !== 'off' && command === 'build' && previewBuild?.required !== undefined) {
147
+ logger.warn('previewBuild.required has no effect: a failed preview build is handled the same either way');
148
+ }
149
+ // Only `astro build` serves d8 drafts: dev, sync, check and preview read no git or sites.json for it.
150
+ if (mode === 'd8' && command === 'build') {
151
+ for (const name of ['config', 'outDir']) {
152
+ if (previewBuild?.[name] !== undefined) {
153
+ logger.warn(`previewBuild.${name} has no effect on this site: drafts render in the site's own build`);
154
+ }
155
+ }
156
+ previewOptsModule = await d8Baked({ options, config, repoUri, env: process.env });
157
+ // The draft preview renders in this build, at the preview route its own copy of the page handler
158
+ // serves. A site without a recent astro-cms throws here, before anything is injected.
159
+ const entrypoint = previewPageHandlerPath(config.root);
160
+ // A hybrid site keeps its `/_image` for drafts too: Astro reads `image.endpoint` once, before routes
161
+ // exist, and its on-demand pages need the real one. A third-party service may build live `<Image>` URLs
162
+ // from the route, so only known services move it. Read before registering: nothing below may throw.
163
+ const moveImage = knownImageService(config.image?.service?.entrypoint) && !(await hasOnDemandRoutes(config));
164
+ injectRoute({ pattern: `${PREVIEW_ROUTE_SEGMENT}/[...path]`, entrypoint, prerender: false });
165
+ addMiddleware({ entrypoint: '@conloca/cloud-astro/d8-middleware', order: 'pre' });
166
+ // The middleware's Cloudflare runtime import, as in the preview build below.
167
+ updateConfig({
168
+ vite: { build: { rollupOptions: { external: [/^cloudflare:/] } }, plugins: [previewOptsPlugin] },
169
+ });
170
+ // Last, so a refusal or throw above never moves it.
171
+ if (moveImage) {
172
+ updateConfig({
173
+ image: {
174
+ endpoint: {
175
+ route: `${PREVIEW_ROUTE_SEGMENT}/_image`,
176
+ entrypoint: d8ImageEndpoint(config.adapter?.name ?? ''),
177
+ },
178
+ },
179
+ });
180
+ imageMoved = true;
181
+ }
182
+ }
183
+ siteMode = mode;
184
+ }
185
+ catch (error) {
186
+ // conlocaCMS publishes the content root from its own config:setup, which runs first only when listed first.
187
+ const hint = mode === 'd8' && !process.env.CONLOCA_CONTENT_ROOT
188
+ ? '; list conlocaCloud() after conlocaCMS() in astro.config'
189
+ : '';
190
+ logger.warn(`preview is off for this build: ${messageOf(error)}${hint}`);
191
+ }
192
+ }
103
193
  // Only the recursive preview build (which sets PREVIEW_BUILD_ENV_FLAG)
104
194
  // mounts the SSR catch-all that renders previews; a site's normal
105
195
  // build never exposes it. The route is fixed and public: the signed
106
196
  // pass, checked against what this build bakes in, is the lock.
107
197
  if (process.env[PREVIEW_BUILD_ENV_FLAG] === '1') {
108
- if (!repoUri) {
109
- throw new Error(`${PACKAGE_NAME}: could not determine repository identity for the preview build ` +
110
- '(build in a Git checkout or set repoUri as an advanced override)');
111
- }
112
- // The project's own checkout answers git, not the directory the
113
- // build was started from.
114
- const projectGit = (args) => gitOutput(args, fileURLToPath(config.root));
115
- const buildRef = resolveBuildRef(process.env, projectGit);
116
- if (!buildRef.branch) {
117
- throw new Error(`${PACKAGE_NAME}: could not determine the branch the preview build serves (set CF_PAGES_BRANCH, ` +
118
- 'WORKERS_CI_BRANCH, VERCEL_GIT_COMMIT_REF or GITHUB_REF_NAME, or build in a git checkout on a branch)');
119
- }
198
+ const baked = bakedIdentity({ options, config, repoUri, env: process.env });
120
199
  const childMode = previewChildMode(process.env);
121
200
  childServeMode = childMode;
122
201
  keepPrerendered = previewChildPrerendered(process.env);
123
- const siteId = resolveBuildSiteId({
124
- contentRoot: process.env.CONLOCA_CONTENT_ROOT,
125
- override: options.siteId,
126
- });
127
202
  injectRoute({
128
203
  pattern: `${PREVIEW_ROUTE_SEGMENT}/[...path]`,
129
204
  entrypoint: '@conloca/cloud-astro/preview-handler',
@@ -137,39 +212,13 @@ export function conlocaCloud(options = {}) {
137
212
  // published content after one page view. Fail-open — an
138
213
  // uncredentialed visitor gets the ordinary page.
139
214
  addMiddleware({ entrypoint: '@conloca/cloud-astro/site-middleware', order: 'pre' });
140
- // The commit this preview build's checkout holds: a PR build may
141
- // check out a merge commit rather than the commit CI hands over.
142
- // Page-status compares the branch's latest commit with it, so the
143
- // endpoint diffs against the content actually serving, not a newer
144
- // commit whose deploy never landed. A checkout commit the
145
- // endpoint does not have makes it render from the branch instead.
146
- const buildCommit = projectGit(['rev-parse', 'HEAD']) ?? buildRef.gitSha;
147
- // Bake the middleware's configuration into the artifact. Every value
148
- // is already known here — endpoint and audience are integration
149
- // options; repository, site, branch, base and commit are what this
150
- // build was made from, and every pass must match the first three —
151
- // so a correctly built preview deployment needs NO env vars set on
152
- // it. `saasIssuer` stays unbaked unless configured: it is a property
153
- // of the endpoint, not of the site.
154
- previewOptsModule = {
155
- saasEndpoint: options.endpoint ?? DEFAULT_EDITOR_ENDPOINT,
156
- // The token's `aud` is the repo URI this build resolved.
157
- saasAudience: repoUri,
158
- ...(options.saasIssuer ? { saasIssuer: options.saasIssuer } : {}),
159
- ...(buildCommit ? { buildCommit } : {}),
160
- repo: repoUri,
161
- siteId,
162
- branch: buildRef.branch,
163
- base: config.base ?? '/',
164
- mode: childMode,
165
- };
166
- // The dispatcher's exit route answers with these: the values every pass is checked against, already
167
- // narrowed by the two throws above.
215
+ previewOptsModule = { ...baked, mode: childMode };
216
+ // The dispatcher's exit route answers with these: the values every pass is checked against.
168
217
  childExit = {
169
- repo: repoUri,
170
- siteId,
171
- branch: buildRef.branch,
172
- audience: repoUri,
218
+ repo: baked.repo,
219
+ siteId: baked.siteId,
220
+ branch: baked.branch,
221
+ audience: baked.repo,
173
222
  ...(options.saasIssuer ? { issuer: options.saasIssuer } : {}),
174
223
  };
175
224
  // Preview-build path: the child build must emit an SSR
@@ -178,24 +227,12 @@ export function conlocaCloud(options = {}) {
178
227
  // adapter stays in force when it already has one), and write to a
179
228
  // SEPARATE outDir so the child never clobbers the primary dist/.
180
229
  const previewBuild = options.previewBuild || {};
230
+ // The site's build settled its own mode; a build started with the flag alone is a separate preview deploy,
231
+ // so it is checked as one: refused under an adapter that deploys from the project root, and with
232
+ // previewBuild.adapter.
233
+ previewBuildMode(childMode === 'd4' ? { ...previewBuild, separate: true } : previewBuild, config.adapter?.name, previewBuild.adapter?.name);
181
234
  // A site that names no adapter builds its preview server for Cloudflare Workers: next to it (D3) or apart (D4).
182
- const adapter = previewBuild.adapter ??
183
- config.adapter ??
184
- (childMode === 'd2' ? undefined : await cloudflareAdapter(config.root, childMode));
185
- // Throws for a refused adapter — the parent already checked, this keeps the child honest.
186
- previewBuildMode(previewBuild, adapter?.name);
187
- // Astro allows exactly one deployment integration. Adding
188
- // previewBuild.adapter next to the project's own would make the
189
- // child build die on Astro's adapter-conflict error, which names
190
- // neither this integration nor the option — fail here with the
191
- // actual cause. The child inherits the project adapter, so the
192
- // option is unnecessary on SSR projects.
193
- if (previewBuild.adapter && config.adapter) {
194
- const projectAdapterName = config.adapter.name;
195
- throw new Error(`${PACKAGE_NAME}: previewBuild.adapter conflicts with the project's own adapter ` +
196
- `(${projectAdapterName}) — Astro allows only one deployment integration per build. ` +
197
- 'Remove previewBuild.adapter; the preview build inherits the project adapter.');
198
- }
235
+ const adapter = config.adapter ?? (await cloudflareAdapter(config.root, childMode));
199
236
  // Trailing slash so URL-joining treats it as a directory. Astro
200
237
  // derives build.client/build.server from outDir BEFORE hooks run,
201
238
  // so overriding outDir alone still writes into the primary dist/ —
@@ -247,20 +284,7 @@ export function conlocaCloud(options = {}) {
247
284
  },
248
285
  }
249
286
  : {}),
250
- plugins: [
251
- {
252
- name: 'conloca-preview-opts',
253
- resolveId(id) {
254
- return id === VIRTUAL_PREVIEW_OPTS ? RESOLVED_PREVIEW_OPTS : undefined;
255
- },
256
- load(id) {
257
- if (id !== RESOLVED_PREVIEW_OPTS)
258
- return undefined;
259
- // Read lazily so the values assigned above are captured.
260
- return `export default ${JSON.stringify(previewOptsModule ?? {})};`;
261
- },
262
- },
263
- ],
287
+ plugins: [previewOptsPlugin],
264
288
  },
265
289
  // The adapter must ride in BOTH ways: as `adapter` because the
266
290
  // build gate checks `config.adapter` before creating the SSR
@@ -306,7 +330,7 @@ export function conlocaCloud(options = {}) {
306
330
  const pattern = 'route' in route && typeof route.route === 'string' ? route.route : '';
307
331
  // A D3 child keeps prerendered what its static site's build prerendered, endpoints included: on demand, a
308
332
  // getStaticPaths route would lose its props, and the dispatcher would have to run on it in production. Its
309
- // own on-demand routes (and every route of a D2 child) keep their own setting.
333
+ // own on-demand routes keep their own setting.
310
334
  if (!cms && keepPrerendered.has(prerenderedKey(pattern, route.component))) {
311
335
  route.prerender = true;
312
336
  return;
@@ -339,11 +363,18 @@ export function conlocaCloud(options = {}) {
339
363
  route.prerender = false;
340
364
  logger.debug(`preview build: forcing on-demand rendering for ${route.component}`);
341
365
  },
342
- 'astro:routes:resolved': ({ routes }) => {
366
+ 'astro:routes:resolved': ({ routes, logger }) => {
343
367
  if (process.env[PREVIEW_BUILD_ENV_FLAG] !== '1') {
344
368
  sitePrerendered = routes
345
369
  .filter((route) => route.isPrerendered)
346
370
  .map((route) => prerenderedKey(route.pattern, route.entrypoint));
371
+ siteRoutesOnDemand = siteOnDemand(routes, PREVIEW_ROUTE_SEGMENT);
372
+ siteRoutes = routes;
373
+ if (imageMoved) {
374
+ for (const route of siteRoutesOnDemand) {
375
+ logger.warn(`preview moved the image endpoint, but ${route} renders on demand and was not visible when astro.config was read: its images are served untransformed while preview is on`);
376
+ }
377
+ }
347
378
  return;
348
379
  }
349
380
  // Astro injects the server-islands route whenever an adapter is set, but refuses islands without one: a static
@@ -352,29 +383,45 @@ export function conlocaCloud(options = {}) {
352
383
  onDemand = onDemandPatterns(used);
353
384
  },
354
385
  'astro:config:done': ({ config, logger }) => {
355
- adapterName = config.adapter?.name;
356
386
  viteConfig = config.vite;
357
387
  astroBase = config.base ?? '/';
358
388
  srcDir = config.srcDir;
359
389
  serverOutput = config.output === 'server';
360
390
  i18n = config.i18n;
391
+ // Optional-chained: unit tests drive this hook with a partial config.
392
+ buildServer = config.build?.server;
393
+ astroConfig = config;
361
394
  inherited = resolveInheritedOptions(options, readEditorDescriptors());
362
- // A refused or missing preview adapter fails `astro build` here,
363
- // before the site builds, rather than after it. `astro dev`, `sync`
364
- // and `preview` never start the preview build, so they are left
365
- // alone. The child build checks its own.
395
+ // d8 and D3 child builds: the media folder conlocaCMS settled in its config:setup, listed as this build deploys it.
396
+ if (previewOptsModule !== undefined && bakesMedia(previewOptsModule.mode)) {
397
+ try {
398
+ const media = bakedMedia(readEditorDescriptors(), config.root);
399
+ if (media !== undefined)
400
+ previewOptsModule = { ...previewOptsModule, media };
401
+ }
402
+ catch (error) {
403
+ // Never fail the site's build over it: draft uploads still show, images committed on the branch don't.
404
+ logger.warn(`drafts won't show images committed on the branch: can't list the media folder: ${messageOf(error)}`);
405
+ }
406
+ }
407
+ // A missing Cloudflare adapter fails `astro build` here, before the
408
+ // site builds, rather than after it. `astro dev`, `sync` and
409
+ // `preview` never start the preview build, so they are left alone.
366
410
  if (astroCommand === 'build' && process.env[PREVIEW_BUILD_ENV_FLAG] !== '1') {
367
- const mode = previewMode();
368
411
  // D3 builds its preview server with @astrojs/cloudflare: missing, the build fails here, before the site builds.
369
- if (mode === 'd3' && projectRoot !== undefined)
412
+ if (siteMode === 'd3' && projectRoot !== undefined)
370
413
  resolveCloudflareAdapter(fileURLToPath(projectRoot));
371
- if (mode === 'd2' && adapterName === undefined) {
372
- logger.warn('previewBuild.adapter on a static site serves drafts from the deployed preview server; remove ' +
373
- 'previewBuild.adapter to serve them next to the static site on Cloudflare Workers instead');
374
- }
375
414
  }
376
415
  },
377
- 'astro:build:done': async ({ dir, logger, pages }) => {
416
+ // Can't happen: config:setup turns d8 off for edge middleware before registering any; reaching this is a guard bug.
417
+ 'astro:build:ssr': ({ middlewareEntryPoint }) => {
418
+ if (siteMode === 'd8' &&
419
+ middlewareEntryPoint !== undefined &&
420
+ (adapterName === '@astrojs/vercel' || adapterName === '@astrojs/netlify')) {
421
+ throw new Error(`${PACKAGE_NAME}: ${D8_EDGE_REFUSAL}`);
422
+ }
423
+ },
424
+ 'astro:build:done': async ({ dir, logger, pages, assets }) => {
378
425
  if (process.env[PREVIEW_BUILD_ENV_FLAG] === '1') {
379
426
  // The recursive preview build sets this flag on the child Astro process. Writing the editor page there
380
427
  // again would race the parent, which writes its own; the child reports only what the parent reads.
@@ -408,7 +455,64 @@ export function conlocaCloud(options = {}) {
408
455
  if (projectRoot === undefined || viteConfig === undefined || inherited === undefined) {
409
456
  throw new Error(`${PACKAGE_NAME}: astro:build:done ran before the config hooks recorded the project root and Vite config`);
410
457
  }
411
- const mode = previewMode();
458
+ // §4.6 backstop for an isr config the text could not read (computed options): the adapter's build:done ran
459
+ // first, so its routes are written. The prefix answers a static 404, so no draft is ever cached.
460
+ const vercelConfig = new URL('.vercel/output/config.json', projectRoot);
461
+ if (siteMode === 'd8' && adapterName === '@astrojs/vercel') {
462
+ try {
463
+ const routes = existsSync(vercelConfig) ? JSON.parse(readFileSync(vercelConfig, 'utf8')) : null;
464
+ if (vercelIsrCatchesPrefix(routes, astroBase)) {
465
+ writeFileSync(vercelConfig, JSON.stringify(darkenIsrPrefix(routes, astroBase), null, 2));
466
+ logger.warn(`preview is off for this build: ${d8IsrRefusal(astroBase)}`);
467
+ siteMode = 'off';
468
+ }
469
+ }
470
+ catch (error) {
471
+ // Decision (f): never fail the site build; with the routes unchecked, no draft may be served.
472
+ logger.warn(`preview is off for this build: couldn't check .vercel/output/config.json: ${messageOf(error)}`);
473
+ siteMode = 'off';
474
+ }
475
+ }
476
+ // After the backstop, so a darkened prefix stays as it is: keep visitors' misses off the preview function.
477
+ if (siteMode === 'd8' && adapterName === '@astrojs/vercel' && existsSync(vercelConfig)) {
478
+ try {
479
+ const config = JSON.parse(readFileSync(vercelConfig, 'utf8'));
480
+ const narrowed = narrowVercelCatchAll(config, siteRoutesOnDemand?.length === 0);
481
+ if (narrowed !== null && 'config' in narrowed) {
482
+ writeFileSync(vercelConfig, JSON.stringify(narrowed.config, null, 2));
483
+ }
484
+ else if (narrowed !== null) {
485
+ logger.warn(`misses on this site run the preview function: add src/pages/404.astro (.vercel/output/config.json: ${narrowed.leave})`);
486
+ }
487
+ }
488
+ catch (error) {
489
+ // Decision (f): drafts still render; only what a miss costs changes.
490
+ logger.warn(`misses on this site run the preview function: couldn't narrow .vercel/output/config.json: ${messageOf(error)}`);
491
+ }
492
+ }
493
+ if (siteMode === 'd8' && adapterName === '@astrojs/cloudflare') {
494
+ try {
495
+ const expected = [
496
+ // A moved image endpoint is under `<prefix>/*`; `<base>_image` then serves nothing.
497
+ ...previewOwnEntries(astroBase).filter((entry) => !imageMoved || entry !== imageEndpointEntry(astroBase)),
498
+ // With not_found_handling "404-page", a static site's `server:defer` islands would get the 404 page.
499
+ workerFirstPattern('/_server-islands/[name]', astroBase),
500
+ ...(siteRoutesOnDemand ?? []).map((pattern) => workerFirstPattern(pattern, astroBase)),
501
+ ];
502
+ await writeWorkerFirst(fileURLToPath(projectRoot), expected);
503
+ // An SSR site's misses reached its Cloudflare Worker before preview, too.
504
+ if (siteRoutesOnDemand?.length === 0 && buildServer !== undefined) {
505
+ const wrangler = JSON.parse(readFileSync(new URL('wrangler.json', buildServer), 'utf8'));
506
+ for (const problem of cloudflareD8Problems(wrangler, expected)) {
507
+ logger.warn(`${problem} (\`conloca connect --update --yes\` applies this once the CLI supports d8)`);
508
+ }
509
+ }
510
+ }
511
+ catch (error) {
512
+ logger.warn(`preview: couldn't check the Cloudflare routing: ${messageOf(error)}`);
513
+ }
514
+ }
515
+ const mode = siteMode;
412
516
  // The editor page: every build writes it.
413
517
  await emitEditorPage({
414
518
  dir: fileURLToPath(dir),
@@ -425,22 +529,22 @@ export function conlocaCloud(options = {}) {
425
529
  i18n,
426
530
  logger,
427
531
  });
532
+ // After the editor page: on Cloudflare the list goes in its folder, which the editor page must create.
533
+ if (mode === 'd8' && adapterName !== undefined && astroConfig !== undefined) {
534
+ try {
535
+ const sitePages = sitePagesOf(pages ?? [], assets ?? new Map(), siteRoutes, dir, astroBase);
536
+ await writeSitePagesList(adapterName, astroConfig, sitePages);
537
+ }
538
+ catch (error) {
539
+ // Decision (f): drafts still render; the site's own pages just aren't kept inside the preview.
540
+ logger.warn(`preview: the site-pages list failed: ${messageOf(error)}`);
541
+ }
542
+ }
428
543
  // Strict opt-in: only a previewBuild given as an object starts the second build. D4 builds it elsewhere.
429
544
  const previewBuild = options.previewBuild || undefined;
430
- if (previewBuild === undefined || mode === 'off' || mode === 'd4')
545
+ if (previewBuild === undefined || mode !== 'd3')
431
546
  return;
432
547
  const previewOut = previewOutDir(previewBuild, projectRoot);
433
- if (mode === 'd2') {
434
- await spawnPreviewBuild(previewBuild, 'd2');
435
- // The child build cannot write the editor files itself (it
436
- // short-circuits this hook — see the recursion guard above), but in
437
- // a deployment that serves the site and the preview from one
438
- // Cloudflare Worker its client dir is THE asset set serving the site,
439
- // so the editor files must be there too. Mirror them from this build's dist.
440
- await mirrorEditorPage(fileURLToPath(dir), fileURLToPath(new URL('client/', previewOut)));
441
- logger.info('editor page mirrored into the preview client dir');
442
- return;
443
- }
444
548
  // D3: a failed preview build is isolated unless its server also serves the live site (finishD3Build decides).
445
549
  let built = true;
446
550
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"integration.js","sourceRoot":"","sources":["../../src/integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAA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AM,IAAI,KAAK,CACb,GAAG,YAAY,2FAA2F;YACxG,yFAAyF,EAC3F,EAAE,KAAK,EAAE,CACV,CAAC;IACJ,CAAC;AACH,CAAC;AAED,wGAAwG;AACxG,MAAM,eAAe,GAAG;IACtB,YAAY;IACZ,qBAAqB;IACrB,eAAe;IACf,eAAe;IACf,qBAAqB;IACrB,sBAAsB;CACd,CAAC;AAEX,4GAA4G;AAC5G,SAAS,eAAe,CAAC,OAA4B;IACnD,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE,CAAC;QACnC,IAAI,IAAI,IAAI,OAAO,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CACb,GAAG,YAAY,aAAa,IAAI,wEAAwE,CACzG,CAAC;QACJ,CAAC;IACH,CAAC;IACD,IAAI,OAAO,CAAC,QAAQ,KAAK,SAAS;QAAE,OAAO;IAC3C,IAAI,CAAC;QACH,4DAA4D;QAC5D,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC5B,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,KAAK,CAAC,GAAG,YAAY,uCAAuC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC5F,CAAC;IACD,IAAI,cAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAE,CAAC;QAC9C,MAAM,IAAI,KAAK,CACb,GAAG,YAAY,qGAAqG,OAAO,CAAC,QAAQ,EAAE,CACvI,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -1,4 +1,6 @@
1
1
  export { DEFAULT_EDITOR_ENDPOINT, EDITOR_HOST_PROTOCOL, EDITOR_PAGE_PATH, type EditorHostPageData, type EditorPageInfo, } from '@conloca/content-api/editor-host';
2
+ export { D8_TESTED_ADAPTERS, d8RateLimitLines } from './d8-adapters.js';
3
+ export { d8ConfigRefusal, d8EdgeRefusal } from './d8-guards.js';
2
4
  export { type FramingBlocker, type FramingSnippets, findFramingBlockers, framingSnippets, } from './editor-page/framing.js';
3
5
  export { conlocaCloud as default, conlocaCloud, PACKAGE_NAME, PREVIEW_BUILD_ENV_FLAG } from './integration.js';
4
6
  export type { ConlocaCloudOptions, PreviewBuildOptions } from './types.js';
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/node.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,mBAAmB,EACnB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,YAAY,IAAI,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/G,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/node.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,mBAAmB,EACnB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,YAAY,IAAI,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/G,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
package/dist/src/node.js CHANGED
@@ -2,6 +2,10 @@
2
2
  // the integration into `astro.config.mjs` via this subpath; every build
3
3
  // writes your site's editor page to /_conloca/editor/.
4
4
  export { DEFAULT_EDITOR_ENDPOINT, EDITOR_HOST_PROTOCOL, EDITOR_PAGE_PATH, } from '@conloca/content-api/editor-host';
5
+ // The adapter releases and host rate-limit lines connect and doctor share.
6
+ export { D8_TESTED_ADAPTERS, d8RateLimitLines } from './d8-adapters.js';
7
+ // The d8 config-text refusals `conloca connect` checks before it writes an adapter's options.
8
+ export { d8ConfigRefusal, d8EdgeRefusal } from './d8-guards.js';
5
9
  // The /_conloca/editor/ header rules that `conloca connect` writes and doctor checks.
6
10
  export { findFramingBlockers, framingSnippets, } from './editor-page/framing.js';
7
11
  // The default export is what `astro add @conloca/cloud-astro` wires in.
@@ -1 +1 @@
1
- {"version":3,"file":"node.js","sourceRoot":"","sources":["../../src/node.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,wEAAwE;AACxE,uDAAuD;AAEvD,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,GAGjB,MAAM,kCAAkC,CAAC;AAC1C,sFAAsF;AACtF,OAAO,EAGL,mBAAmB,EACnB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,wEAAwE;AACxE,OAAO,EAAE,YAAY,IAAI,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"node.js","sourceRoot":"","sources":["../../src/node.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,wEAAwE;AACxE,uDAAuD;AAEvD,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,GAGjB,MAAM,kCAAkC,CAAC;AAC1C,2EAA2E;AAC3E,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACxE,8FAA8F;AAC9F,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAChE,sFAAsF;AACtF,OAAO,EAGL,mBAAmB,EACnB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,wEAAwE;AACxE,OAAO,EAAE,YAAY,IAAI,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC"}