@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/vite.ts +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donkeylabs/adapter-sveltekit",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "type": "module",
5
5
  "description": "SvelteKit adapter for @donkeylabs/server - seamless SSR/browser API integration",
6
6
  "main": "./src/index.ts",
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;