@pylonsync/create-pylon 0.3.172 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pylonsync/create-pylon",
3
- "version": "0.3.172",
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"
@@ -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");