Skip to content

Commit 77f75b7

Browse files
DamianEdwardsIEvangelistCopilot
authored
Update deployment documentation for JavaScript apps (#643)
* Update deployment documentation for JavaScript apps Tweaks to deploying JS apps doc. * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: David Pine <david.pine@microsoft.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 40bf4d7 commit 77f75b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/frontend/src/content/docs/deployment/javascript-apps.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ For deployment, `AddViteApp` and `AddJavaScriptApp` should be treated as fronten
2828
To deploy a JavaScript frontend, you must choose which other resource owns the public HTTP surface in production:
2929

3030
- Use `PublishWithContainerFiles(...)` when your backend or web server will serve the built frontend files.
31-
- Use `PublishWithStaticFiles(...)` when your reverse proxy, gateway, or BFF will serve the built frontend files.
31+
- Use `PublishWithStaticFiles(...)` when your reverse proxy, gateway, or <abbr title="Backend for Frontend">BFF</abbr> will serve the built frontend files.
3232

3333
If you only add a Vite or JavaScript app and reference backend services, Aspire still needs one of these production hosting patterns to know who serves the built frontend in deployment.
3434

@@ -223,9 +223,9 @@ await builder.build().run();
223223
</Tabs>
224224

225225
<Aside type="note">
226-
`AddViteApp` is still fine in this model. The trap is not `AddViteApp` itself
227-
— it is treating the Vite development server endpoint as a publish-time
228-
dependency.
226+
`AddViteApp` is still fine in this model but it's important to
227+
understand that the Vite development server endpoint is not used at
228+
publish-time.
229229
</Aside>
230230

231231
### Dev-only gateway wiring

0 commit comments

Comments
 (0)