diff --git a/components/BuilderClientPage.tsx b/components/BuilderClientPage.tsx index 9729e2f..56a8da2 100644 --- a/components/BuilderClientPage.tsx +++ b/components/BuilderClientPage.tsx @@ -6,6 +6,7 @@ import { pageSchema, type Page } from '@/lib/schema/page' import { exportPage } from '@/lib/exporter/html' import { AssetManager } from '@/lib/assets/assetManager' import { buildZip } from '@/lib/exporter/zip' +import { buildExtrasForPage } from '@/lib/exporter/extras' import type { Section } from '@/lib/state/store' import { createFormStore, type FormState } from '@/lib/state/formStore' import FormBuilderPanel from '@/components/FormBuilderPanel' @@ -196,7 +197,8 @@ export default function BuilderClientPage() { } } catch {} const assets = am ? am.toZipStructure() : {} - const zipBytes = await buildZip({ html: exported.html, css: exported.css, js: exported.js, assets }) + const extras = buildExtrasForPage(valid) + const zipBytes = await buildZip({ html: exported.html, css: exported.css, js: exported.js, assets, extras }) download('landing.zip', zipBytes) }, [pageData, am])