Repository navigation
Add JavaScript framework docs samples - #932
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
David Fowler (davidfowl)
requested review from
David Pine (IEvangelist) and
Eric Erhardt (eerhardt)
as code owners
May 13, 2026 04:59
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds concrete JavaScript framework wiring examples to the Aspire JavaScript integration docs and updates the JavaScript deployment guidance to match the validated patterns (static website via publishAsStaticWebsite, SSR/server frameworks via publishAsNodeServer / publishAsNpmScript, and Next.js via addNextJsApp).
Changes:
- Added a new “Framework examples” section to the JavaScript integration page with per-framework AppHost snippets and framework-side configuration examples.
- Updated JavaScript deployment guidance and “framework-specific gotchas” to use a shared
api.getEndpoint('http')→API_URLpattern for SSR frameworks, and refreshed the publish-shape examples.
Show a summary per file
| File | Description |
|---|---|
| src/frontend/src/content/docs/integrations/frameworks/javascript.mdx | Adds extensive per-framework AppHost examples and refines existing Next.js/Vite guidance and formatting. |
| src/frontend/src/content/docs/deployment/javascript-apps.mdx | Aligns deployment shapes and framework gotchas with the new example patterns and adds cross-links back to the integration page. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 1
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Contributor
Author
|
For review 4278445716: acknowledged. The actionable finding from this review was accepted and fixed in the inline thread; no separate code change was needed for the overview text itself. |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
David Pine (IEvangelist)
approved these changes
May 13, 2026
David Pine (IEvangelist)
left a comment
Member
There was a problem hiding this comment.
Nice! This is really well done, good job. 🤓
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JavaScript framework docs were mostly prose, which made it hard for readers searching for a specific framework to see the exact Aspire wiring they need.
This PR adds concrete framework examples to the JavaScript integration docs and aligns the deployment guidance with the validated Aspire JS chaos sample patterns. It covers static browser apps with
publishAsStaticWebsite, SSR/server frameworks withpublishAsNodeServerorpublishAsNpmScript, and Next.js withaddNextJsApp. The deployment gotchas now include both AppHost snippets and framework-side configuration examples.Validation:
pnpm --dir ./src/frontend exec prettier --plugin prettier-plugin-astro --check src/content/docs/deployment/javascript-apps.mdx src/content/docs/integrations/frameworks/javascript.mdxpnpm --dir ./src/frontend run build:skip-search