getRemoteClientModule() — astro Function Reference
Architecture documentation for the getRemoteClientModule() function in vite-plugin-db-client.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD eabac1cc_8605_fa22_cb33_174a34e31846["getRemoteClientModule()"] 09de2174_d4e9_aa73_d61b_3762b75c4eaa["vite-plugin-db-client.ts"] eabac1cc_8605_fa22_cb33_174a34e31846 -->|defined in| 09de2174_d4e9_aa73_d61b_3762b75c4eaa 4ceaf323_81d9_782a_bd16_2fe3c89a80d3["vitePluginDbClient()"] 4ceaf323_81d9_782a_bd16_2fe3c89a80d3 -->|calls| eabac1cc_8605_fa22_cb33_174a34e31846 style eabac1cc_8605_fa22_cb33_174a34e31846 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/db/src/core/integration/vite-plugin-db-client.ts lines 9–17
function getRemoteClientModule(mode: 'node' | 'web') {
switch (mode) {
case 'web':
return `export { createClient } from '${DB_CLIENTS.web}';`;
case 'node':
default:
return `export { createClient } from '${DB_CLIENTS.node}';`;
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getRemoteClientModule() do?
getRemoteClientModule() is a function in the astro codebase, defined in packages/db/src/core/integration/vite-plugin-db-client.ts.
Where is getRemoteClientModule() defined?
getRemoteClientModule() is defined in packages/db/src/core/integration/vite-plugin-db-client.ts at line 9.
What calls getRemoteClientModule()?
getRemoteClientModule() is called by 1 function(s): vitePluginDbClient.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free