docs: add AgentOS dev server previews - #299
RivetAgent wants to merge 1 commit into
Conversation
|
This PR was not deployed automatically as @RivetAgent does not have access to the Railway project. In order to get automatic PR deploys, please add @RivetAgent to your workspace on Railway. |
1 similar comment
|
This PR was not deployed automatically as @RivetAgent does not have access to the Railway project. In order to get automatic PR deploys, please add @RivetAgent to your workspace on Railway. |
| await agent.process.exec("npm install --prefix /home/agentos/app"); | ||
| await agent.process.spawn("npm", [ |
There was a problem hiding this comment.
🟠 Medium · Configure the signed path as the dev server's public base
The server is started before the preview path is minted, so a conventional frontend cannot be configured for the /fetch/<token> prefix. For example, Vite's default HTML requests /@vite/client and /src/...; those requests omit the token prefix and hit the actor's non-preview route, which returns 404. Mint the preview first and pass preview.path as the framework's base/asset prefix when spawning the server, or explicitly limit this flow to applications whose asset URLs are relative.
| Dynamic Apps deploys finished applications as immutable releases. During the | ||
| code-generation loop, use agentOS when an agent needs to run a conventional | ||
| development server with hot reload. A signed preview link forwards HTTP traffic |
There was a problem hiding this comment.
🟠 Medium · Do not promise hot reload over an HTTP-only preview
The preview handler forwards each request through the buffered vm.network.httpRequest() API and has no WebSocket/Upgrade path. WebSocket-based HMR clients such as Vite's therefore cannot connect through this link, even if the page and assets are otherwise configured for the preview prefix. Scope this to HTTP previews and document manual refresh, or add WebSocket forwarding before advertising hot reload.
Summary
httpRequest()access and when to deploy the finished app with Dynamic AppsValidation
git diff --checkdocs/sidebar.jsonwithJSON.parse