@pylonsync/create-pylon 0.3.171 → 0.3.173

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.
@@ -476,7 +476,7 @@ ${platformLines.join("\n")}
476
476
  Layout:
477
477
  ${layoutLines.join("\n")}
478
478
 
479
- Docs: https://pylonsync.com/docs
479
+ Docs: https://docs.pylonsync.com
480
480
  `);
481
481
 
482
482
  // ---------------------------------------------------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pylonsync/create-pylon",
3
- "version": "0.3.171",
3
+ "version": "0.3.173",
4
4
  "description": "Scaffold a new Pylon app — realtime backend + web/mobile/expo frontends in one command. Run via `npm create @pylonsync/pylon@latest`.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -40,4 +40,4 @@ bun run dev
40
40
 
41
41
  ## Docs
42
42
 
43
- [pylonsync.com/docs](https://pylonsync.com/docs)
43
+ [docs.pylonsync.com](https://docs.pylonsync.com)
@@ -4,10 +4,12 @@ import { init } from "@pylonsync/react";
4
4
  import { App } from "./App";
5
5
  import "./index.css";
6
6
 
7
- // Same-origin baseUrl — the Vite dev server proxies /api/* to the
8
- // Pylon backend (see vite.config.ts). In production, configure your
9
- // CDN / reverse proxy the same way and this works unchanged.
10
- init({ baseUrl: "", appName: "__APP_NAME_SNAKE__" });
7
+ // Omit baseUrl — Pylon defaults to window.location.origin, which the
8
+ // Vite dev server proxies to the backend (see vite.config.ts). The
9
+ // same setup ships to production unchanged: configure your CDN /
10
+ // reverse proxy to forward /api/* (including the WebSocket upgrade
11
+ // for /api/sync/ws) to your Pylon server.
12
+ init({ appName: "__APP_NAME_SNAKE__" });
11
13
 
12
14
  const root = document.getElementById("root");
13
15
  if (!root) throw new Error("#root not found");