button-directive.ts — astro Source File
Architecture documentation for button-directive.ts, a typescript file in the astro codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 080dff5c_0ce9_40b4_c9bd_b1e13e78054b["button-directive.ts"] ce123753_6345_ccc9_026a_38a9d2540c8b["../components/buttonDirective.astro"] 080dff5c_0ce9_40b4_c9bd_b1e13e78054b --> ce123753_6345_ccc9_026a_38a9d2540c8b f16d8c76_2866_6150_bd14_0347b59abfe9["astro"] 080dff5c_0ce9_40b4_c9bd_b1e13e78054b --> f16d8c76_2866_6150_bd14_0347b59abfe9 e5359079_11b2_76cc_fb55_2963613c4b02["container"] 080dff5c_0ce9_40b4_c9bd_b1e13e78054b --> e5359079_11b2_76cc_fb55_2963613c4b02 4ef918ed_1833_d4ac_87f9_6b1eb1475bdf["server.js"] 080dff5c_0ce9_40b4_c9bd_b1e13e78054b --> 4ef918ed_1833_d4ac_87f9_6b1eb1475bdf style 080dff5c_0ce9_40b4_c9bd_b1e13e78054b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { APIRoute, SSRLoadedRenderer } from 'astro';
import { experimental_AstroContainer } from 'astro/container';
import renderer from '@astrojs/react/server.js';
import Component from '../components/buttonDirective.astro';
export const GET: APIRoute = async (ctx) => {
const container = await experimental_AstroContainer.create();
container.addServerRenderer({ renderer });
container.addClientRenderer({ name: '@astrojs/react', entrypoint: '@astrojs/react/client.js' });
return await container.renderToResponse(Component);
};
Domain
Subdomains
Functions
Dependencies
- ../components/buttonDirective.astro
- astro
- container
- server.js
Source
Frequently Asked Questions
What does button-directive.ts do?
button-directive.ts is a source file in the astro codebase, written in typescript. It belongs to the IntegrationAdapters domain, SsrAdapters subdomain.
What functions are defined in button-directive.ts?
button-directive.ts defines 1 function(s): GET.
What does button-directive.ts depend on?
button-directive.ts imports 4 module(s): ../components/buttonDirective.astro, astro, container, server.js.
Where is button-directive.ts in the architecture?
button-directive.ts is located at packages/astro/test/fixtures/container-custom-renderers/src/pages/button-directive.ts (domain: IntegrationAdapters, subdomain: SsrAdapters, directory: packages/astro/test/fixtures/container-custom-renderers/src/pages).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free