Skip to content

Commit

Permalink
Expose build options
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderniebuhr committed May 27, 2024
1 parent c2e53d2 commit b006eba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/astro/src/core/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export interface BuildOptions {
/**
* Build a SSR project without running the static build. This allows us to use a workaround to split up the build into two builds, one with the old behavior and one without the prerendering logic. This is currently used for testng in the Cloudlfare adapter.
*
* @internal very specific to the Cloudflare adapter
* @default false
*/
ssronly?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export { default as preview } from './preview/index.js';
* @experimental The JavaScript API is experimental
*/
// Wrap `_build` to prevent exposing the second internal options parameter
export const build = (inlineConfig: AstroInlineConfig) => _build(inlineConfig);
export const build = (inlineConfig: AstroInlineConfig, options: { ssronly?: boolean }) => _build(inlineConfig, options);

/**
* Generates TypeScript types for all Astro modules. This sets up a `src/env.d.ts` file for type inferencing,
Expand Down

0 comments on commit b006eba

Please sign in to comment.