status.json.ts — astro Source File
Architecture documentation for status.json.ts, a typescript file in the astro codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 2c02b0df_2f5c_bac1_9154_0b9a20cc96d5["status.json.ts"] f16d8c76_2866_6150_bd14_0347b59abfe9["astro"] 2c02b0df_2f5c_bac1_9154_0b9a20cc96d5 --> f16d8c76_2866_6150_bd14_0347b59abfe9 style 2c02b0df_2f5c_bac1_9154_0b9a20cc96d5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { APIContext } from 'astro';
declare global {
// eslint-disable-next-line no-var
var __requestAbortState: { aborted: boolean; events: string[] } | undefined;
}
export const GET = ({ request }: APIContext) => {
const url = new URL(request.url);
const shouldReset = url.searchParams.get('reset') === '1';
const state = globalThis.__requestAbortState ?? { aborted: false, events: [] };
if (shouldReset) {
globalThis.__requestAbortState = { aborted: false, events: [] };
}
return new Response(JSON.stringify(state), {
headers: {
'content-type': 'application/json; charset=utf-8',
},
});
};
Domain
Subdomains
Functions
Classes
Dependencies
- astro
Source
Frequently Asked Questions
What does status.json.ts do?
status.json.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 status.json.ts?
status.json.ts defines 1 function(s): GET.
What does status.json.ts depend on?
status.json.ts imports 1 module(s): astro.
Where is status.json.ts in the architecture?
status.json.ts is located at packages/astro/test/fixtures/request-signal/src/pages/status.json.ts (domain: IntegrationAdapters, subdomain: SsrAdapters, directory: packages/astro/test/fixtures/request-signal/src/pages).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free