getTempViteServer() — astro Function Reference
Architecture documentation for the getTempViteServer() function in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 616f494c_6029_e3a6_b7cd_0bc268f4f27e["getTempViteServer()"] 74eaede6_604c_f153_5a03_fab5555699d5["index.ts"] 616f494c_6029_e3a6_b7cd_0bc268f4f27e -->|defined in| 74eaede6_604c_f153_5a03_fab5555699d5 bae2f194_ed09_ed10_da43_ef94962b8ab8["astroDBIntegration()"] bae2f194_ed09_ed10_da43_ef94962b8ab8 -->|calls| 616f494c_6029_e3a6_b7cd_0bc268f4f27e style 616f494c_6029_e3a6_b7cd_0bc268f4f27e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/db/src/core/integration/index.ts lines 247–266
async function getTempViteServer({ viteConfig }: { viteConfig: UserConfig }) {
const tempViteServer = await createServer(
mergeConfig(viteConfig, {
server: { middlewareMode: true, hmr: false, watch: null, ws: false },
optimizeDeps: { noDiscovery: true },
ssr: { external: [] },
logLevel: 'silent',
}),
);
const hotSend = tempViteServer.environments.client.hot.send;
tempViteServer.environments.client.hot.send = (payload: HotPayload) => {
if (payload.type === 'error') {
throw payload.err;
}
return hotSend(payload);
};
return tempViteServer;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getTempViteServer() do?
getTempViteServer() is a function in the astro codebase, defined in packages/db/src/core/integration/index.ts.
Where is getTempViteServer() defined?
getTempViteServer() is defined in packages/db/src/core/integration/index.ts at line 247.
What calls getTempViteServer()?
getTempViteServer() is called by 1 function(s): astroDBIntegration.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free