Home / File/ entries.json.js — astro Source File

entries.json.js — astro Source File

Architecture documentation for entries.json.js, a javascript file in the astro codebase. 2 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  27909955_8fe3_f954_6447_cd0596459c9d["entries.json.js"]
  48f80d01_e646_3924_78f6_a9d836644746["astro:content"]
  27909955_8fe3_f954_6447_cd0596459c9d --> 48f80d01_e646_3924_78f6_a9d836644746
  ca52ff61_c81f_c2ca_81b6_5a678b65fd31["devalue"]
  27909955_8fe3_f954_6447_cd0596459c9d --> ca52ff61_c81f_c2ca_81b6_5a678b65fd31
  style 27909955_8fe3_f954_6447_cd0596459c9d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { getEntry } from 'astro:content';
import * as devalue from 'devalue';

export async function GET() {
	const oneWithSchemaConfig = await getEntry('with-schema-config', 'one');
	const twoWithCustomSlugs = await getEntry('with-custom-slugs', 'interesting-two');
	const postWithUnionSchema = await getEntry('with-union-schema', 'post');

	return new Response(
		devalue.stringify({
			oneWithSchemaConfig,
			twoWithCustomSlugs,
			postWithUnionSchema,
		})
	);
}

Subdomains

Functions

Dependencies

  • astro:content
  • devalue

Frequently Asked Questions

What does entries.json.js do?
entries.json.js is a source file in the astro codebase, written in javascript. It belongs to the IntegrationAdapters domain, SsrAdapters subdomain.
What functions are defined in entries.json.js?
entries.json.js defines 1 function(s): GET.
What does entries.json.js depend on?
entries.json.js imports 2 module(s): astro:content, devalue.
Where is entries.json.js in the architecture?
entries.json.js is located at packages/astro/test/fixtures/content-collections/src/pages/entries.json.js (domain: IntegrationAdapters, subdomain: SsrAdapters, directory: packages/astro/test/fixtures/content-collections/src/pages).

Analyze Your Own Codebase

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

Try Supermodel Free