Home / File/ static.svg.ts — astro Source File

static.svg.ts — astro Source File

Architecture documentation for static.svg.ts, a typescript file in the astro codebase.

Entity Profile

Relationship Graph

Source Code

export function GET() {
	return new Response(
		`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 200">
	<title>Static SVG</title>
</svg>`,
		{
			headers: {
				'content-type': 'image/svg+xml',
			},
		}
	);
}

Subdomains

Functions

Frequently Asked Questions

What does static.svg.ts do?
static.svg.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 static.svg.ts?
static.svg.ts defines 1 function(s): GET.
Where is static.svg.ts in the architecture?
static.svg.ts is located at packages/astro/test/fixtures/with-endpoint-routes/src/pages/images/static.svg.ts (domain: IntegrationAdapters, subdomain: SsrAdapters, directory: packages/astro/test/fixtures/with-endpoint-routes/src/pages/images).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free