astro.config.mjs — astro Source File
Architecture documentation for astro.config.mjs, a javascript file in the astro codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR ae5b97ce_7775_0b0f_9084_e7b4e6e63d8f["astro.config.mjs"] d9a92db9_c95e_9165_13ac_24b3d859d946["node:url"] ae5b97ce_7775_0b0f_9084_e7b4e6e63d8f --> d9a92db9_c95e_9165_13ac_24b3d859d946 1aafec42_0f39_8429_1c1d_80a79946b271["react"] ae5b97ce_7775_0b0f_9084_e7b4e6e63d8f --> 1aafec42_0f39_8429_1c1d_80a79946b271 3b10c06c_a805_be1f_3a3d_1f00ea858ef5["config"] ae5b97ce_7775_0b0f_9084_e7b4e6e63d8f --> 3b10c06c_a805_be1f_3a3d_1f00ea858ef5 style ae5b97ce_7775_0b0f_9084_e7b4e6e63d8f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { fileURLToPath } from 'node:url';
import react from "@astrojs/react";
import { defineConfig } from 'astro/config';
export default defineConfig({
integrations: [astroClientClickDirective(), astroClientPasswordDirective(), astroHasOptionsDirective(), react()],
});
function astroClientClickDirective() {
return {
name: 'astro-client-click',
hooks: {
'astro:config:setup': (opts) => {
opts.addClientDirective({
name: 'click',
entrypoint: fileURLToPath(new URL('./client-click.js', import.meta.url))
});
}
}
};
}
function astroClientPasswordDirective() {
return {
name: 'astro-client-password',
hooks: {
'astro:config:setup': (opts) => {
opts.addClientDirective({
name: 'password',
entrypoint: fileURLToPath(new URL('./client-password.js', import.meta.url))
});
}
}
};
}
function astroHasOptionsDirective() {
return {
name: 'astro-options',
hooks: {
'astro:config:setup': (opts) => {
opts.addClientDirective({
name: 'options',
entrypoint: fileURLToPath(new URL('./client-options.js', import.meta.url))
});
}
}
};
}
Domain
Subdomains
Dependencies
- config
- node:url
- react
Source
Frequently Asked Questions
What does astro.config.mjs do?
astro.config.mjs is a source file in the astro codebase, written in javascript. It belongs to the E2ETesting domain, TestFixtures subdomain.
What functions are defined in astro.config.mjs?
astro.config.mjs defines 3 function(s): astroClientClickDirective, astroClientPasswordDirective, astroHasOptionsDirective.
What does astro.config.mjs depend on?
astro.config.mjs imports 3 module(s): config, node:url, react.
Where is astro.config.mjs in the architecture?
astro.config.mjs is located at packages/astro/e2e/fixtures/custom-client-directives/astro.config.mjs (domain: E2ETesting, subdomain: TestFixtures, directory: packages/astro/e2e/fixtures/custom-client-directives).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free