Home / File/ config.ts — astro Source File

config.ts — astro Source File

Architecture documentation for config.ts, a typescript file in the astro codebase. 15 imports, 0 dependents.

File typescript CoreAstro RenderingEngine 15 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  9a410621_7e4c_298f_fae4_ea2f60c8b25d["config.ts"]
  ea387312_d0a2_bb52_dafc_3872f7307f95["../../src/assets/fonts/types.js"]
  9a410621_7e4c_298f_fae4_ea2f60c8b25d --> ea387312_d0a2_bb52_dafc_3872f7307f95
  416eda3d_47e6_c298_102b_b7a37d86a44e["../../assets/types.js"]
  9a410621_7e4c_298f_fae4_ea2f60c8b25d --> 416eda3d_47e6_c298_102b_b7a37d86a44e
  a4f2698c_5256_262a_ba7c_f72b51878d10["../core/app/types.js"]
  9a410621_7e4c_298f_fae4_ea2f60c8b25d --> a4f2698c_5256_262a_ba7c_f72b51878d10
  98277c9f_2ef4_8553_dbba_3908c3aeda5e["../../core/config/schemas/index.js"]
  9a410621_7e4c_298f_fae4_ea2f60c8b25d --> 98277c9f_2ef4_8553_dbba_3908c3aeda5e
  7216d952_4e4a_2d18_a85b_74b4ace79e2b["../core/constants.js"]
  9a410621_7e4c_298f_fae4_ea2f60c8b25d --> 7216d952_4e4a_2d18_a85b_74b4ace79e2b
  d34ed003_355b_637d_1578_cba29babbd4c["../../core/csp/config.js"]
  9a410621_7e4c_298f_fae4_ea2f60c8b25d --> d34ed003_355b_637d_1578_cba29babbd4c
  d3861967_b647_84d2_ff48_15013353bd56["../core/logger/core.js"]
  9a410621_7e4c_298f_fae4_ea2f60c8b25d --> d3861967_b647_84d2_ff48_15013353bd56
  e6591dc4_f998_7dbc_3c66_06ac5ec7fba0["../../core/session/types.js"]
  9a410621_7e4c_298f_fae4_ea2f60c8b25d --> e6591dc4_f998_7dbc_3c66_06ac5ec7fba0
  3a338670_ef65_2b57_cc61_29c1c222b236["../../env/schema.js"]
  9a410621_7e4c_298f_fae4_ea2f60c8b25d --> 3a338670_ef65_2b57_cc61_29c1c222b236
  4c453c0b_17bb_ebc3_f7de_e2a632e42c1e["../types/public/integrations.js"]
  9a410621_7e4c_298f_fae4_ea2f60c8b25d --> 4c453c0b_17bb_ebc3_f7de_e2a632e42c1e
  c2f6615e_96e9_c4eb_5f71_cf120e271705["node:http"]
  9a410621_7e4c_298f_fae4_ea2f60c8b25d --> c2f6615e_96e9_c4eb_5f71_cf120e271705
  21f9daf1_9979_0313_afee_bbb8465c9f69["remote"]
  9a410621_7e4c_298f_fae4_ea2f60c8b25d --> 21f9daf1_9979_0313_afee_bbb8465c9f69
  82f345a2_2234_43f1_c3c4_eea191acdca8["markdown-remark"]
  9a410621_7e4c_298f_fae4_ea2f60c8b25d --> 82f345a2_2234_43f1_c3c4_eea191acdca8
  21fed27e_530c_dc1d_9c13_6eebedd78776["svgo"]
  9a410621_7e4c_298f_fae4_ea2f60c8b25d --> 21fed27e_530c_dc1d_9c13_6eebedd78776
  style 9a410621_7e4c_298f_fae4_ea2f60c8b25d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { OutgoingHttpHeaders } from 'node:http';
import type { RemotePattern } from '@astrojs/internal-helpers/remote';
import type {
	RehypePlugins,
	RemarkPlugins,
	RemarkRehype,
	ShikiConfig,
	SyntaxHighlightConfigType,
} from '@astrojs/markdown-remark';
import type { Config as SvgoConfig } from 'svgo';
import type { UserConfig as OriginalViteUserConfig, SSROptions as ViteSSROptions } from 'vite';
import type { FontFamily, FontProvider } from '../../assets/fonts/types.js';
import type { ImageFit, ImageLayout } from '../../assets/types.js';
import type { AssetsPrefix } from '../../core/app/types.js';
import type { AstroConfigType } from '../../core/config/schemas/index.js';
import type { REDIRECT_STATUS_CODES } from '../../core/constants.js';
import type { CspAlgorithm, CspDirective, CspHash } from '../../core/csp/config.js';
import type { Logger, LoggerLevel } from '../../core/logger/core.js';
import type {
	SessionConfig,
	SessionDriverConfig,
	SessionDriverName,
} from '../../core/session/types.js';
import type { EnvSchema } from '../../env/schema.js';
import type { AstroIntegration } from './integrations.js';

export type Locales = (string | { codes: [string, ...string[]]; path: string })[];

export type { FontProvider };

export type { CspAlgorithm, CspHash };

export type { RemotePattern };

export type CspStyleDirective = { hashes?: CspHash[]; resources?: string[] };
export type CspScriptDirective = {
	hashes?: CspHash[];
	resources?: string[];
	strictDynamic?: boolean;
};

type NormalizeLocales<T extends Locales> = {
	[K in keyof T]: T[K] extends string
		? T[K]
		: T[K] extends { codes: Array<string> }
			? T[K]['codes'][number]
			: never;
}[number];

export interface ImageServiceConfig<T extends Record<string, any> = Record<string, any>> {
	entrypoint: 'astro/assets/services/sharp' | (string & {});
	config?: T;
}

export type RuntimeMode = 'development' | 'production';

export type ValidRedirectStatus = (typeof REDIRECT_STATUS_CODES)[number];

export type RedirectConfig =
	| string
// ... (2766 more lines)

Domain

Subdomains

Functions

Dependencies

  • ../../assets/types.js
  • ../../core/config/schemas/index.js
  • ../../core/csp/config.js
  • ../../core/session/types.js
  • ../../env/schema.js
  • ../../src/assets/fonts/types.js
  • ../core/app/types.js
  • ../core/constants.js
  • ../core/logger/core.js
  • ../types/public/integrations.js
  • markdown-remark
  • node:http
  • remote
  • svgo
  • vite

Frequently Asked Questions

What does config.ts do?
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 config.ts?
config.ts defines 1 function(s): ServerConfig.
What does config.ts depend on?
config.ts imports 15 module(s): ../../assets/types.js, ../../core/config/schemas/index.js, ../../core/csp/config.js, ../../core/session/types.js, ../../env/schema.js, ../../src/assets/fonts/types.js, ../core/app/types.js, ../core/constants.js, and 7 more.
Where is config.ts in the architecture?
config.ts is located at packages/astro/src/types/public/config.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro/src/types/public).

Analyze Your Own Codebase

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

Try Supermodel Free