You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a8da574
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/sim/platform/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,14 +25,14 @@ The same app serves three modes, resolved on the server:
25
25
|`live`|`SIM_PLATFORM_API_ORIGIN`, `NEXT_PUBLIC_APP_URL`| The viewer's real organization, over the main app's `/api`|
26
26
|`none`| Neither | Empty routes |
27
27
28
-
Deployed, the Platform is a zone at `/platform` on the main app's origin, so it shares the session cookie, `/api` and security headers:
28
+
Deployed, the Platform is a zone at `/org` on the main app's origin, so it shares the session cookie, `/api` and security headers:
29
29
30
30
| Variable | Set on | Purpose |
31
31
| --- | --- | --- |
32
-
|`SIM_PLATFORM_BASE_PATH=/platform`| Platform, at build | Prefixes routes and assets |
32
+
|`SIM_PLATFORM_BASE_PATH=/org`| Platform, at build | Prefixes routes and assets |
33
33
|`SIM_PLATFORM_API_ORIGIN`| Platform, at runtime | Where server reads go, with the viewer's cookies |
34
34
|`NEXT_PUBLIC_APP_URL`| Platform, at runtime | The main app's public origin, for login and legacy links |
35
-
|`SIM_PLATFORM_ORIGIN`| Main app, at build and runtime | The `/platform` rewrite is baked at build; the organization redirect reads it at runtime |
35
+
|`SIM_PLATFORM_ORIGIN`| Main app, at build and runtime | The `/org` rewrite is baked at build; the organization redirect reads it at runtime |
36
36
|`platform-org-ui` flag | AppConfig, or `PLATFORM_ORG_UI`| Which organizations the legacy layout redirects here |
37
37
38
38
With none of these set, nothing changes for either app. The legacy layout redirects only flagged members, keeps its query string, and leaves unmapped routes on the legacy surface. To run live locally without the zone, start the main app, sign in at its origin, then start this app with `SIM_PLATFORM_API_ORIGIN=http://localhost:3000` and `NEXT_PUBLIC_APP_URL=http://localhost:3000`; with no base path it proxies `/api` itself.
0 commit comments