@donkeylabs/adapter-sveltekit 1.1.8 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/vite.ts +9 -0
package/package.json
CHANGED
package/src/vite.ts
CHANGED
|
@@ -88,6 +88,15 @@ export function donkeylabsDev(options: DevPluginOptions = {}): Plugin {
|
|
|
88
88
|
// Import and initialize server directly - no subprocess, no proxy
|
|
89
89
|
console.log("[donkeylabs-dev] Starting in-process mode (Bun runtime detected)");
|
|
90
90
|
|
|
91
|
+
// Log the actual URL once Vite's server starts listening
|
|
92
|
+
server.httpServer?.on("listening", () => {
|
|
93
|
+
const address = server.httpServer?.address();
|
|
94
|
+
if (address && typeof address === "object") {
|
|
95
|
+
const host = address.address === "::" || address.address === "0.0.0.0" ? "localhost" : address.address;
|
|
96
|
+
console.log(`[donkeylabs-dev] Ready at http://${host}:${address.port}`);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
91
100
|
try {
|
|
92
101
|
const serverModule = await import(/* @vite-ignore */ serverEntryResolved);
|
|
93
102
|
appServer = serverModule.server || serverModule.default;
|