integration.js — astro Source File
Architecture documentation for integration.js, a javascript file in the astro codebase. 1 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR eb7928ab_50f9_90cd_29c7_b8f4370cda13["integration.js"] 436bd5b5_624c_3fc2_183f_0bcb296cdd8e["promises"] eb7928ab_50f9_90cd_29c7_b8f4370cda13 --> 436bd5b5_624c_3fc2_183f_0bcb296cdd8e 77e445bd_6a4d_63c3_4393_3647a3a718c5["astro.config.mjs"] 77e445bd_6a4d_63c3_4393_3647a3a718c5 --> eb7928ab_50f9_90cd_29c7_b8f4370cda13 style eb7928ab_50f9_90cd_29c7_b8f4370cda13 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { setTimeout } from "node:timers/promises";
export default function() {
return {
name: '@astrojs/test-integration',
hooks: {
'astro:server:setup': async ({ server }) => {
// Ensure that `async` is respected
await setTimeout(100);
server.middlewares.use(
function middleware(req, res, next) {
res.setHeader('x-middleware', 'true');
next();
}
);
}
}
}
}
Domain
Dependencies
- promises
Source
Frequently Asked Questions
What does integration.js do?
integration.js is a source file in the astro codebase, written in javascript. It belongs to the IntegrationAdapters domain.
What does integration.js depend on?
integration.js imports 1 module(s): promises.
What files import integration.js?
integration.js is imported by 1 file(s): astro.config.mjs.
Where is integration.js in the architecture?
integration.js is located at packages/astro/test/fixtures/integration-server-setup/integration.js (domain: IntegrationAdapters, directory: packages/astro/test/fixtures/integration-server-setup).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free