live-config.ts — astro Source File
Architecture documentation for live-config.ts, a typescript file in the astro codebase.
Entity Profile
Relationship Graph
Source Code
export * as z from 'zod/v4';
export { defineLiveCollection } from '../content/config.js';
function createErrorFunction(message: string) {
return () => {
const error = new Error(`The ${message}() function is not available in live config files.`);
// Remove the virtual module path from the stack trace
const stackLines = error.stack?.split('\n');
if (stackLines && stackLines.length > 1) {
stackLines.splice(1, 1);
error.stack = stackLines.join('\n');
}
throw error;
};
}
export const getCollection = createErrorFunction('getCollection');
export const render = createErrorFunction('render');
export const getEntry = createErrorFunction('getEntry');
export const getEntries = createErrorFunction('getEntries');
export const reference = createErrorFunction('reference');
export const getLiveCollection = createErrorFunction('getLiveCollection');
export const getLiveEntry = createErrorFunction('getLiveEntry');
export const defineCollection = createErrorFunction('defineCollection');
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does live-config.ts do?
live-config.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RenderingEngine subdomain.
What functions are defined in live-config.ts?
live-config.ts defines 1 function(s): createErrorFunction.
Where is live-config.ts in the architecture?
live-config.ts is located at packages/astro/src/virtual-modules/live-config.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro/src/virtual-modules).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free