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
feat(dev-ui): serve dev UI under /dev/ path, proxy user app at root
Move the dev UI to /dev/* so the user's Next.js app can be served at /
via a reverse proxy to localhost:3000. This enables cloud-dev machines
to expose both the dev UI and the running app on the same domain.
- Add Vite base path /dev/ and update all frontend fetch URLs
- Restructure dev-server routing: /dev/* → dev UI, /* → user app proxy
- Move WebSocket endpoint to /dev/ws
- Add proxy.ts for forwarding requests to user app
- Fix entrypoint.sh: blocking node_modules copy + runcrayon symlink pin
- Fix postinstall to preserve runcrayon symlinks in container
- Update auth-server health check to ping /dev/
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CLAUDE.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,33 @@ my-app/
138
138
-**Lint/Format:** Biome — `pnpm biome check`
139
139
-**CI:** GitHub Actions (`publish-dev.yml`) publishes to npm with `dev` tag on push to main
140
140
141
+
### Testing Local Changes Against Cloud
142
+
143
+
To test local core changes on a cloud dev machine:
144
+
145
+
1.**Build & push a Docker image with your changes:**
146
+
```bash
147
+
cd packages/core/docker && ./build-dev.sh <tag>
148
+
```
149
+
This builds the core package, packs it, builds/pushes the Docker image to `registry.fly.io/crayon-cloud-dev-image:<tag>`, and updates `CLOUD_DEV_IMAGE` in `packages/auth-server/.env.local`.
150
+
151
+
2.**Start the local auth server** (separate terminal):
152
+
```bash
153
+
cd packages/auth-server && pnpm dev
154
+
```
155
+
156
+
3.**Create a new cloud machine using the local auth server:**
157
+
```bash
158
+
CRAYON_SERVER_URL=http://localhost:3000 pnpm --filter runcrayon exec node dist/cli/index.js cloud run
159
+
```
160
+
161
+
4.**Open the dev UI** at `https://<fly-app-name>.fly.dev/dev/`
162
+
163
+
To update an existing cloud machine to a new image:
164
+
```bash
165
+
cd packages/core/docker && ./update-machines.sh <fly-app-name> [image]
0 commit comments