astro.config.mjs — astro Source File
Architecture documentation for astro.config.mjs, a javascript file in the astro codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR dacf372e_b271_6b74_3653_513394590e3a["astro.config.mjs"] 3b10c06c_a805_be1f_3a3d_1f00ea858ef5["config"] dacf372e_b271_6b74_3653_513394590e3a --> 3b10c06c_a805_be1f_3a3d_1f00ea858ef5 style dacf372e_b271_6b74_3653_513394590e3a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// @ts-check
import { defineConfig, fontProviders } from 'astro/config';
export default defineConfig({
security: {
csp: {
directives: ["font-src 'self' https://fonts.cdn.test.com"],
},
},
fonts: [
{
name: 'Roboto',
cssVariable: '--font-roboto',
provider: fontProviders.local(),
options: {
variants: [
{
weight: 400,
style: 'normal',
src: ['./src/fonts/roboto-normal-400.woff2'],
},
],
},
optimizedFallbacks: false,
},
],
});
Dependencies
- config
Source
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 1 module(s): config.
Where is astro.config.mjs in the architecture?
astro.config.mjs is located at packages/astro/test/fixtures/csp-fonts/astro.config.mjs (directory: packages/astro/test/fixtures/csp-fonts).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free