@@ -80,6 +80,30 @@ under `src/` is never loaded, and `{{PM}} run validate` neither counts nor check
8080what it holds, until its ` index.ts ` barrel is imported in ` objectstack.config.ts `
8181and handed to its stack key there.
8282
83+ ## Change the app in ` src/ ` — a Studio change stays in its database
84+
85+ ` src/ ` is what ships: ` {{PM}} run build ` and the ` Dockerfile ` compile it, and
86+ nothing else, into ` dist/objectstack.json ` . Studio, in the Console that
87+ ` {{PM}} run dev ` serves, never writes ` src/ ` . A change saved there to an item
88+ this app ships (a view, a dashboard, a report) is an item of the package
89+ ` <this app's package id>.custom ` , stored in that environment's database —
90+ locally, ` .objectstack/data/ ` . It is not in the build and does not reach a
91+ deployment.
92+
93+ - ** Make every change to the app in ` src/ ` ** , never through Studio or the
94+ metadata API of a running server: ` src/ ` is what is validated, reviewed and
95+ deployed. When a person tried something in Studio and wants it in the app,
96+ make the same change in ` src/ ` .
97+ - ** A customization that should stay one moves as a package.** With the dev
98+ server running, ` npx os package export ` writes every package the database
99+ holds that ` src/ ` does not register, the ` .custom ` package among them, to
100+ ` objectstack-export/NN-ID/objectstack.json ` . Commit that directory. After
101+ the deployment is up, install each file into it, in the numbered order:
102+ ` npx os package install objectstack-export/NN-ID/objectstack.json --runtime URL ` .
103+
104+ ` {{PM}} run build ` prints a notice when the local dev database holds such a
105+ customization.
106+
83107## AI Skills
84108
85109This project uses the ObjectStack skills catalog from the ` @objectstack/skills `
0 commit comments