Skip to content

Add JavaScript framework docs samples - #932

Merged
David Pine (IEvangelist) merged 5 commits into
mainfrom
davidfowl/js-samples
May 13, 2026
Merged

David Pine (IEvangelist) merged 5 commits into
mainfrom
davidfowl/js-samples

Conversation

@davidfowl

Copy link
Copy Markdown
Contributor

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 with publishAsNodeServer or publishAsNpmScript, and Next.js with addNextJsApp. 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.mdx
  • pnpm --dir ./src/frontend run build:skip-search

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_URL pattern 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

@davidfowl

Copy link
Copy Markdown
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.

@IEvangelist David Pine (IEvangelist) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! This is really well done, good job. 🤓

@IEvangelist
David Pine (IEvangelist) merged commit 3b9cf23 into main May 13, 2026
5 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the davidfowl/js-samples branch May 13, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants