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. 2 imports, 0 dependents.

File javascript 2 imports

Entity Profile

Dependency Diagram

graph LR
  893cb0be_e6b8_70ce_15a9_ab714afe9412["astro.config.mjs"]
  08bb94d1_4138_ead9_cd86_fa1ae5d05662["vue"]
  893cb0be_e6b8_70ce_15a9_ab714afe9412 --> 08bb94d1_4138_ead9_cd86_fa1ae5d05662
  dda46faa_14cf_7744_8a09_a6058434f1e9["config"]
  893cb0be_e6b8_70ce_15a9_ab714afe9412 --> dda46faa_14cf_7744_8a09_a6058434f1e9
  style 893cb0be_e6b8_70ce_15a9_ab714afe9412 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import vue from '@astrojs/vue';
import { defineConfig } from 'astro/config';

// https://astro.build/config
export default defineConfig({
	site: 'http://example.com',
	base: '/blog',
	integrations: [vue()],
	vite: {
		plugins: [
			{
				// Plugin so that we can see in the tests whether the env has been injected
				name: 'export-env-plugin',
				enforce: 'post',
				transform(code, id) {
					if (id.endsWith('.json')) {
						return `${code}\n export const env = ${JSON.stringify(code.includes('CHESHIRE') || code.includes('process.env.KITTY') ? 'CHESHIRE' : 'A MYSTERY')}`;
					}
				},
			},
		],
	},
});

Dependencies

  • config
  • vue

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 2 module(s): config, vue.
Where is astro.config.mjs in the architecture?
astro.config.mjs is located at packages/astro/test/fixtures/astro-envs/astro.config.mjs (directory: packages/astro/test/fixtures/astro-envs).

Analyze Your Own Codebase

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

Try Supermodel Free