Home / File/ astro.config.mjs — astro Source File

astro.config.mjs — astro Source File

Architecture documentation for astro.config.mjs, a javascript file in the astro codebase. 3 imports, 0 dependents.

File javascript 3 imports

Entity Profile

Dependency Diagram

graph LR
  cc1fc74c_1d53_cd9c_58ff_86ce69ea1064["astro.config.mjs"]
  a5b2d183_93d1_58dd_53aa_53d38262353d["markdoc"]
  cc1fc74c_1d53_cd9c_58ff_86ce69ea1064 --> a5b2d183_93d1_58dd_53aa_53d38262353d
  1aafec42_0f39_8429_1c1d_80a79946b271["react"]
  cc1fc74c_1d53_cd9c_58ff_86ce69ea1064 --> 1aafec42_0f39_8429_1c1d_80a79946b271
  3b10c06c_a805_be1f_3a3d_1f00ea858ef5["config"]
  cc1fc74c_1d53_cd9c_58ff_86ce69ea1064 --> 3b10c06c_a805_be1f_3a3d_1f00ea858ef5
  style cc1fc74c_1d53_cd9c_58ff_86ce69ea1064 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import markdoc from "@astrojs/markdoc";
import react from "@astrojs/react";
import { defineConfig } from 'astro/config';

// https://astro.build/config
export default defineConfig({
	integrations: [markdoc({
		nodes: process.env.ASTRO_PERFORMANCE_TEST_NAME === 'with-astro-components' ? {
			heading: {
				render: 'Heading',
				attributes: {
					level: { type: Number },
				},
			}
		} : {},
		tags: process.env.ASTRO_PERFORMANCE_TEST_NAME === 'with-astro-components' ? {
			aside: {
				render: 'Aside',
				attributes: {
					type: { type: String },
					title: { type: String },
				},
			}
		} : process.env.ASTRO_PERFORMANCE_TEST_NAME === 'with-react-components' ? {
			'like-button': {
				render: 'LikeButton',
				attributes: {
					liked: { type: Boolean },
				},
			},
			'hydrated-like-button': {
				render: 'HydratedLikeButton',
				attributes: {
					liked: { type: Boolean },
				},
			},
		} : {},
	}), react()],
});

Dependencies

  • config
  • markdoc
  • react

Frequently Asked Questions

What does astro.config.mjs do?
astro.config.mjs is a source file in the astro codebase, written in javascript.
What does astro.config.mjs depend on?
astro.config.mjs imports 3 module(s): config, markdoc, react.
Where is astro.config.mjs in the architecture?
astro.config.mjs is located at packages/astro/performance/fixtures/mdoc/astro.config.mjs (directory: packages/astro/performance/fixtures/mdoc).

Analyze Your Own Codebase

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

Try Supermodel Free