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

astro.config.ts — astro Source File

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

File typescript 2 imports

Entity Profile

Dependency Diagram

graph LR
  fe900f72_f377_1703_db6d_efd9161e2756["astro.config.ts"]
  dda46faa_14cf_7744_8a09_a6058434f1e9["config"]
  fe900f72_f377_1703_db6d_efd9161e2756 --> dda46faa_14cf_7744_8a09_a6058434f1e9
  491a6b30_50b1_c428_4447_bdb374209a9a["fs"]
  fe900f72_f377_1703_db6d_efd9161e2756 --> 491a6b30_50b1_c428_4447_bdb374209a9a
  style fe900f72_f377_1703_db6d_efd9161e2756 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { defineConfig } from "astro/config";
import { readFileSync } from "fs";
// https://astro.build/config
export default defineConfig({
	output: "static",
  vite: {
    server: {
      https: {
        key: readFileSync(new URL(".cert/key.pem", import.meta.url)),
        cert: readFileSync(new URL(".cert/cert.pem", import.meta.url)),
      },
    },
		plugins: [
			{
				name: 'http-version-plugin',
				// This plugin allows tests to track the version of HTTP used in the request
					configureServer: (server) => {
						server.middlewares.use((req, res, next) => {
							req.headers['x-http-version'] = req.httpVersion;
							next();
						});
					}
			},
		],
  },
});

Dependencies

  • config
  • fs

Frequently Asked Questions

What does astro.config.ts do?
astro.config.ts is a source file in the astro codebase, written in typescript.
What does astro.config.ts depend on?
astro.config.ts imports 2 module(s): config, fs.
Where is astro.config.ts in the architecture?
astro.config.ts is located at packages/astro/test/fixtures/astro-dev-http2/astro.config.ts (directory: packages/astro/test/fixtures/astro-dev-http2).

Analyze Your Own Codebase

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

Try Supermodel Free