From f21357b69d94fe8d81f267efddb182d1a3cc678a Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Thu, 13 Jul 2023 09:21:33 +0100 Subject: feat(@astrojs/netlify): add `build.split` support (#7615) Co-authored-by: Sarah Rainsberger Co-authored-by: Bjorn Lu --- packages/integrations/netlify/test/functions/test-utils.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'packages/integrations/netlify/test/functions/test-utils.js') diff --git a/packages/integrations/netlify/test/functions/test-utils.js b/packages/integrations/netlify/test/functions/test-utils.js index 02b5d2ad9..eff6c2782 100644 --- a/packages/integrations/netlify/test/functions/test-utils.js +++ b/packages/integrations/netlify/test/functions/test-utils.js @@ -7,7 +7,7 @@ export * from '../../../../astro/test/test-utils.js'; * * @returns {import('../../../../astro/dist/types/@types/astro').AstroIntegration} */ -export function testIntegration() { +export function testIntegration({ setEntryPoints } = {}) { return { name: '@astrojs/netlify/test-integration', hooks: { @@ -24,6 +24,11 @@ export function testIntegration() { }, }); }, + 'astro:build:ssr': ({ entryPoints }) => { + if (entryPoints.size) { + setEntryPoints(entryPoints); + } + }, }, }; } -- cgit v1.2.3