full site update

This commit is contained in:
2025-07-24 18:46:24 +02:00
parent bfe2b90d8d
commit 37a6e0ab31
6912 changed files with 540482 additions and 361712 deletions

View File

@@ -1,6 +1,19 @@
import './polyfill.js';
import type { AstroUserConfig, NamedSSRLoadedRendererValue, Props, RouteType, SSRLoadedRenderer, SSRLoadedRendererValue, SSRManifest, SSRResult } from '../@types/astro.js';
import type { AstroComponentFactory } from '../runtime/server/index.js';
import type { Props } from '../types/public/common.js';
import type { AstroUserConfig } from '../types/public/config.js';
import type { NamedSSRLoadedRendererValue, RouteType, SSRLoadedRenderer, SSRLoadedRendererValue, SSRManifest, SSRResult } from '../types/public/internal.js';
/** Public type, used for integrations to define a renderer for the container API */
export type ContainerRenderer = {
/**
* The name of the renderer.
*/
name: string;
/**
* The entrypoint that is used to render a component on the server
*/
serverEntrypoint: string;
};
/**
* Options to be passed when rendering a route
*/
@@ -230,4 +243,15 @@ export declare class experimental_AstroContainer {
* @param {ContainerRenderOptions=} options Possible options to pass when rendering the component.
*/
renderToResponse(component: AstroComponentFactory, options?: ContainerRenderOptions): Promise<Response>;
/**
* It stores an Astro **page** route. The first argument, `route`, gets associated to the `component`.
*
* This function can be useful when you want to render a route via `AstroContainer.renderToString`, where that
* route eventually renders another route via `Astro.rewrite`.
*
* @param {string} route - The URL that will render the component.
* @param {AstroComponentFactory} component - The component factory to be used for rendering the route.
* @param {Record<string, string | undefined>} params - An object containing key-value pairs of route parameters.
*/
insertPageRoute(route: string, component: AstroComponentFactory, params?: Record<string, string | undefined>): void;
}