Skip to content
Open
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
74fedd5
chore(rsc-demo): runtime client ref discovery + MF manifest data
ScriptedAlchemy Nov 27, 2025
7ed1dcf
docs: add Option2Plan for MF-native actions
ScriptedAlchemy Nov 27, 2025
f9b51f0
chore: restore app2 action fallback (revert accidental removal)
ScriptedAlchemy Nov 27, 2025
0f3acfe
docs: enrich Option2 plan with runtime/manifest details
ScriptedAlchemy Nov 27, 2025
2181f26
chore: drop manual manifest merge (runtime is source of truth)
ScriptedAlchemy Nov 27, 2025
02520cd
fix(rsc-demo): export server MF container and merge remote manifest
ScriptedAlchemy Nov 27, 2025
f2b56b8
chore: enforce async-node + MF node runtime on server builds
ScriptedAlchemy Nov 27, 2025
a594dbb
fix(rsc-demo): http mf metadata and context guards
ScriptedAlchemy Nov 27, 2025
9644619
feat(rsc-demo): eager server action registration and share scope fixes
ScriptedAlchemy Dec 2, 2025
125fbf5
fix(rsc-demo): server action registry singleton and test improvements
ScriptedAlchemy Dec 2, 2025
baccd46
fix(rsc-demo): remove skips from HTTP forwarding tests
ScriptedAlchemy Dec 2, 2025
dbd2c15
fix(rsc-demo): http forwarding and test reliability improvements
ScriptedAlchemy Dec 2, 2025
b816818
Merge remote-tracking branch 'origin/main' into rsc-demo
ScriptedAlchemy Dec 2, 2025
e55c0b2
fix(rsc-demo): address CodeQL security alerts
ScriptedAlchemy Dec 2, 2025
74f73f8
fix(rsc-demo): address remaining CodeQL format string alerts
ScriptedAlchemy Dec 2, 2025
8ab0371
fix(rsc-demo): downgrade jsdom to 24.x for Node 18 compatibility
ScriptedAlchemy Dec 2, 2025
fa2ff3e
fix(rsc-demo): make timer sanitization explicit for CodeQL
ScriptedAlchemy Dec 2, 2025
38ca8e7
chore(rsc-demo): remove notes/.gitkeep
ScriptedAlchemy Dec 2, 2025
eeb2841
chore(rsc-demo): remove notes directory
ScriptedAlchemy Dec 2, 2025
2a29f94
chore(rsc-demo): remove debug plugin and fix flaky tests
ScriptedAlchemy Dec 2, 2025
6d9c0d1
fix(rsc-demo): fix SSR module resolution and test stability
ScriptedAlchemy Dec 3, 2025
f2e4218
chore: auto-include client refs for SSR and fix resolver
ScriptedAlchemy Dec 5, 2025
2de6c9b
chore(rsc-demo): preserve actual export names in SSR module map
ScriptedAlchemy Dec 5, 2025
a31a374
ci: add RSC E2E workflow for rsc-demo
ScriptedAlchemy Dec 5, 2025
76756e5
fix(rsc-demo): use dynamic paths in client-refs tests for CI
ScriptedAlchemy Dec 5, 2025
6459f6e
fix(rsc-demo): address CodeQL alerts and add missing deps
ScriptedAlchemy Dec 6, 2025
495f038
fix(rsc-demo): make SSR deterministic and e2e reliable
ScriptedAlchemy Dec 16, 2025
8459797
fix(rsc-demo): remove SSR fallbacks and fix e2e CI
ScriptedAlchemy Dec 16, 2025
807993e
docs(rsc-demo): clarify SSR resolver behavior
ScriptedAlchemy Dec 16, 2025
e1a2bd0
fix(rsc-demo): remove post-build SSR manifest patches
ScriptedAlchemy Dec 16, 2025
b4ca2bc
fix(rsc-demo): stop mutating ssr.js post-build
ScriptedAlchemy Dec 16, 2025
0d93848
fix(rsc-demo): remove global webpack require shim
ScriptedAlchemy Dec 16, 2025
e96c226
ci(rsc-demo): verify mf-manifest SSR registry
ScriptedAlchemy Dec 16, 2025
42dcf74
feat(rsc-demo): declarative manifest.rsc config replaces additionalDa…
ScriptedAlchemy Dec 17, 2025
9c5eae4
Merge branch 'main' into rsc-demo
ScriptedAlchemy Dec 17, 2025
8918c9e
docs(rsc-demo): clarify MF-native server actions as default
ScriptedAlchemy Dec 17, 2025
409482a
fix(rsc-demo): tighten action lookup and drop app2-remote alias
ScriptedAlchemy Dec 17, 2025
1962547
fix(rsc-demo): harden rscRuntimePlugin manifest fetching
ScriptedAlchemy Dec 17, 2025
c0389df
chore: regenerate schema
ScriptedAlchemy Dec 17, 2025
c14dcdc
Revert "chore: regenerate schema"
ScriptedAlchemy Dec 17, 2025
db44238
fix(rsc-demo): manifest remotes + SSR export retention
ScriptedAlchemy Dec 17, 2025
385aba8
fix(enhanced): regenerate schema to remove duplicate rsc key
ScriptedAlchemy Dec 17, 2025
1e27d30
chore(rsc-demo): tighten types + cleanup config
ScriptedAlchemy Dec 17, 2025
814cec9
test(rsc-demo): assert server-side federated RSC
ScriptedAlchemy Dec 17, 2025
2f113f4
fix(rsc-demo): include app1/app2 in build inputs
ScriptedAlchemy Dec 17, 2025
d79253e
fix(rsc-demo): fail hard if remote Button cannot load
ScriptedAlchemy Dec 17, 2025
390ac52
refactor(rsc-demo): move react-server-dom-webpack to packages root
ScriptedAlchemy Dec 17, 2025
798bb54
fix(rsc-demo): resolve react-server-dom-webpack loaders via exports
ScriptedAlchemy Dec 17, 2025
481ce9e
refactor(rsc-demo): reuse AutoIncludeClientComponentsPlugin
ScriptedAlchemy Dec 17, 2025
4e65cdd
docs: document RSC + Module Federation architecture
ScriptedAlchemy Dec 17, 2025
cbf505e
docs: add vendored RSDW diff summary
ScriptedAlchemy Dec 17, 2025
11302e2
docs: add vendored react-server-dom-webpack diffs
ScriptedAlchemy Dec 18, 2025
a985adf
docs: keep functional RSDW diff artifact
ScriptedAlchemy Dec 18, 2025
c28ac83
docs: link to RSC demo architecture
ScriptedAlchemy Dec 18, 2025
14c20c1
test(rsc-demo): offline federation smoke renders remote RSC
ScriptedAlchemy Dec 18, 2025
5af1efd
chore: merge main and resolve lockfile conflict
ScriptedAlchemy Dec 18, 2025
72ffed4
docs(rsc-demo): consolidate RSC+MF implementation guide
ScriptedAlchemy Dec 18, 2025
11d7775
chore(rsc-demo): remove redundant demo legal/config files
ScriptedAlchemy Dec 18, 2025
5eedfb9
style(rsc-demo): format code
ScriptedAlchemy Dec 18, 2025
c553d8a
test(rsc-demo): make build config guard whitespace-safe
ScriptedAlchemy Dec 18, 2025
78ec94a
chore(rsc-demo): replace vendored RSDW with pnpm patch
ScriptedAlchemy Dec 18, 2025
3f1bce0
fix(rsc-demo): fail fast on SSR + doc accuracy
ScriptedAlchemy Dec 19, 2025
0d897f0
chore(rsc-demo): align app2 build config layout
ScriptedAlchemy Dec 19, 2025
c66403f
chore(rsc-demo): remove unused loader options
ScriptedAlchemy Dec 19, 2025
3547545
feat(rsc-demo): auto exposeTypes + bidirectional federation
ScriptedAlchemy Dec 19, 2025
5ea8739
docs: update RSC+MF architecture notes
ScriptedAlchemy Dec 19, 2025
f6b253a
refactor(rsc-demo): manifest-driven remote action bootstrap
ScriptedAlchemy Dec 19, 2025
bb0e81f
refactor(rsc-demo): move shared-components to packages
ScriptedAlchemy Dec 19, 2025
33f460a
chore: merge main and resolve lockfile conflict
ScriptedAlchemy Dec 19, 2025
bd71208
refactor(rsc-demo): consolidate shared demo package
ScriptedAlchemy Dec 20, 2025
1bee457
chore(rsc-demo): format HostBadge
ScriptedAlchemy Dec 20, 2025
b5a64ac
refactor(rsc-demo): auto-register server actions
ScriptedAlchemy Dec 20, 2025
a225cc2
fix(rsc-demo): harden server action discovery
ScriptedAlchemy Dec 22, 2025
c708317
chore: merge main into rsc-demo
ScriptedAlchemy Dec 22, 2025
ea0e9cc
fix(rsc-demo): make MF-native actions deterministic
ScriptedAlchemy Dec 23, 2025
eaa2d4f
fix(rsc-demo): add workflow perms + harden action forwarding
ScriptedAlchemy Dec 23, 2025
31ea66c
chore: retrigger CI
ScriptedAlchemy Dec 23, 2025
84d5e1f
fix(rsc-demo): make MF-native action bootstrap manifest-driven
ScriptedAlchemy Dec 23, 2025
9226307
fix(rsc-demo): remove excessive permissions from e2e-rsc workflow
ScriptedAlchemy Dec 23, 2025
9d905ad
docs(rsc-demo): align SSR worker docs with mf-manifest.ssr.json
ScriptedAlchemy Dec 23, 2025
ce19b5b
fix(rsc-demo): make SSR manifests deterministic
ScriptedAlchemy Dec 23, 2025
9cd608f
fix(manifest): avoid disk polling for client manifest
ScriptedAlchemy Dec 23, 2025
556a941
refactor(rsc-demo): split app-shared runtime/webpack
ScriptedAlchemy Dec 25, 2025
5d0976a
refactor(rsc-demo): package app-shared
ScriptedAlchemy Dec 25, 2025
f205e72
fix(rsc-demo): remove disk fallbacks and tighten workspace allowlist
ScriptedAlchemy Dec 25, 2025
adb97e6
chore(rsc-demo): move app-shared to packages
ScriptedAlchemy Dec 25, 2025
a025a5b
chore(rsc-demo): align nx targets and dependencies
ScriptedAlchemy Dec 30, 2025
386a47c
Merge remote-tracking branch 'origin/main' into rsc-demo
ScriptedAlchemy Dec 30, 2025
0479e19
refactor(rsc-demo): centralize framework entrypoints
ScriptedAlchemy Dec 31, 2025
731c33e
feat(rsc-demo): harden MF RSC integration
ScriptedAlchemy Jan 4, 2026
e55f74c
docs: update RSC MF architecture diagram
ScriptedAlchemy Jan 4, 2026
d9d7586
refactor(rsc-demo): relocate shared packages and rename rsc tooling
ScriptedAlchemy Jan 4, 2026
2826d4e
chore(rsc-demo): stabilize rsc/mf build
ScriptedAlchemy Jan 5, 2026
7c3fd91
fix(rsbuild-plugin): remove enhanced type dependency
ScriptedAlchemy Jan 5, 2026
10c2bac
fix(rsc): correct export type paths
ScriptedAlchemy Jan 6, 2026
085b8aa
fix(rsc): stabilize runtime config merge and tests
ScriptedAlchemy Jan 6, 2026
e34707c
test(rsc-demo): align MF-native action indexing assertions
ScriptedAlchemy Jan 6, 2026
ef7ecbf
docs: update RSC MF architecture guide
ScriptedAlchemy Jan 6, 2026
d0d5111
refactor(rsc-demo): always load bidirectional host badge
ScriptedAlchemy Jan 7, 2026
00557df
refactor(rsc-demo): statically import host badge
ScriptedAlchemy Jan 7, 2026
b4d5fbd
refactor(rsc-demo): use static federated imports
ScriptedAlchemy Jan 7, 2026
32dfdee
feat(rsc-demo-patches): make RSDW layer-aware
ScriptedAlchemy Jan 9, 2026
b8e01a2
chore: merge origin/main
ScriptedAlchemy Jan 10, 2026
0e1b347
feat: vendor rsdw and update rsc demo
ScriptedAlchemy Jan 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions Option2Plan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Option 2 (MF-Native RSC Actions) – Execution Plan

Goal: execute remote “use server” modules in-process via Module Federation, without HTTP forwarding, while keeping HTTP as a safe fallback. This must work for RSC, SSR, client hydration, shared packages, and layered share scopes.

## Outcomes
- Host can `getServerAction(id)` for remote actions loaded via MF.
- No filesystem coupling; remotes discovered over HTTP via MF manifest data.
- Layer-aware sharing preserved (rsc vs client).
- Tests cover MF-native path plus fallback to HTTP.
- Works when remotes are deployed separately (no shared filesystem) and when the remote HTTP server is offline (MF container already loaded).

## Workstream A – Remote publishes the right metadata
1) **MF manifest extraData**: ensure remote (e.g., app2) publishes in `manifest.additionalData`:
- `rsc.serverActionsManifest`, `rsc.clientManifest`, `rsc.remote.url`, `rsc.remote.serverContainer`, `rsc.remote.actionsEndpoint`.
- `rsc.exposeTypes` marking `./server-actions` as `server-action` (and other exposes as `client-component`, `server-component`, etc.).
- (Optional) `rsc.layers` map so the host knows which shareScope each expose expects.
2) **Public paths**: remoteEntry.server.js, mf-stats.json, manifests all served over HTTP (no fs paths).
3) **Share scopes**: keep `shareScope: 'rsc'` for server layer, `'client'` for browser; include `react`, `react/jsx-runtime`, `react/jsx-dev-runtime`, `react-server-dom-webpack/server`.

## Workstream B – Host runtime plugin wiring
1) **Runtime plugin** (rscRuntimePlugin):
- On remote load, read MF manifest extraData (or mf-stats fallback).
- Fetch `serverActionsManifest` URL; cache by URL.
- For `server-actions` exposes, call `registerServerReference(fn, id, exportName)` for every manifest entry belonging to that remote.
- Use `resolveShare` / `loadShare` hooks to map to the correct shareScope based on issuer layer (rsc vs client), avoiding alias hacks.
- Emit structured logs (DEBUG) for: manifest fetch, module load, registration counts, and failures; surface a non-fatal warning when MF load fails so HTTP fallback remains available.
2) **Host RSC entry**: ensure host imports remote `server-actions` so MF loads the container in the RSC layer (or trigger via lazy load during first request).
3) **Option ordering** in `/react` handler:
- Try `getServerAction(id)` (populated by runtime plugin).
- If missing and remote match → HTTP forward (Option 1) as fallback.
- Add a small counter/metric for MF hits vs HTTP fallbacks.

## Workstream C – Loader & plugin alignment
1) **rsc-server-loader**: when processing MF-imported modules, preserve the canonical module URL from the manifest (do not rewrite to host paths) when calling `registerServerReference`.
2) **react-server-dom-webpack plugin**: ensure manifest generation includes MF-imported actions (buildInfo flags already set; just respect provided module URLs).
3) **No build-time manifest merge** in the host; everything discovered at runtime via MF data.
4) **Client manifest for SSR (optional stretch)**: allow runtime plugin to fetch `clientManifest` from remote and merge into SSR worker’s manifest if we later SSR remote client islands.

## Workstream D – Tests
1) Unit: assert runtime plugin fetches extraData URLs, registers actions, and populates `getServerAction` without HTTP.
2) Integration (node --test): start host only, stop remote HTTP server, verify remote actions still execute (pure MF). Then start remote server to confirm HTTP fallback still works when MF load fails.
3) E2E: browser flows unchanged; add a case where host uses MF-native action and HTTP server is down.
4) Negative tests: malformed extraData URL, missing manifest, incompatible shareScope, and mismatched React version in remote (should log and fall back).
5) Performance check: compare latency of MF-native vs HTTP forward; assert no extra network calls for manifest after first fetch (cache hit).

## Rollout Steps
1) Update remote MF config to emit extraData URLs over HTTP.
2) Update rscRuntimePlugin to prefer extraData, cache by manifest URL, and use loadShare for layer-aware React sharing.
3) Ensure host server-entry imports remote server-actions (or lazy load before first action).
4) Remove any residual build-time merges; rely solely on runtime discovery.
5) Add tests (unit + integration + e2e) for MF-native path and fallback behavior.
6) Add observability: lightweight counters for MF registrations, MF load failures, HTTP fallbacks; optionally expose in logs or a diagnostics endpoint.

## Open Questions
- MF runtime “factory is not a function” on Node: diagnose container format vs runtime plugin; may need `@module-federation/node` runtimePlugin ordering or `library.type: 'commonjs-module'` alignment.
- Should remote also publish RSC client manifest URL for host-side SSR of remote client components? If yes, extend runtime plugin to fetch/merge client manifests for SSR worker.
- Do we need per-remote auth headers/cookies when fetching manifests over HTTP? If so, allow a configurable fetch hook in the runtime plugin.
- How to handle version skew of `react-server-dom-webpack` between host and remote? Consider validating major/minor in extraData and warning/falling back to HTTP.
41 changes: 41 additions & 0 deletions apps/rsc-demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
**/node_modules/
/.pnp
.pnp.js

# testing
/coverage

# production
/build
/dist
**/dist
/packages/app1/dist
/packages/app2/dist
**/build
/packages/app1/build
/packages/app2/build

# notes
notes/*.md
!notes/RESEARCH.md
test-results/

# misc
.DS_Store
.eslintcache
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

# vscode
.vscode
1 change: 1 addition & 0 deletions apps/rsc-demo/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.19.1
27 changes: 27 additions & 0 deletions apps/rsc-demo/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build
/dist

# misc
.DS_Store
.eslintcache
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

*.html
*.json
*.md
18 changes: 18 additions & 0 deletions apps/rsc-demo/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

'use strict';

module.exports = {
arrowParens: 'always',
bracketSpacing: false,
singleQuote: true,
jsxBracketSameLine: true,
trailingComma: 'es5',
printWidth: 80,
};
43 changes: 43 additions & 0 deletions apps/rsc-demo/AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Repository Guidelines

## Project Structure & Modules
- Monorepo managed by `pnpm`. Primary apps live in `packages/app1` and `packages/app2`; shared RSC tooling is in `packages/react-server-dom-webpack`.
- App source: `packages/*/src`. Servers: `packages/*/server`. Webpack configs and build scripts: `packages/*/scripts`.
- Tests: unit/integration in `packages/e2e/rsc`, Playwright E2E in `packages/e2e/e2e`. Build output lands in `packages/*/build` (gitignored).

## Build, Test, Dev Commands
- `pnpm install` — install workspace deps.
- `pnpm start` — run app1 dev server with webpack watch (bundler + server).
- `pnpm --filter app2 start` — same for app2.
- `pnpm run build` — production builds for app1 and app2 (client + server layers).
- `pnpm test` — top-level test entry; runs RSC tests and MF tests after building.
- `pnpm run test:rsc` — RSC unit/integration tests (Node `--test`).
- `pnpm run test:e2e:rsc` — Playwright smoke for the RSC notes apps.
- `pnpm run test:e2e` — all Playwright suites (requires prior build).

## Coding Style & Naming
- JavaScript/React with ES modules; prefer functional components.
- Indent with 2 spaces; keep files ASCII-only unless existing file uses Unicode.
- Client components carry the `'use client'` directive; server actions/components avoid it. Name server action files `*.server.js` when possible.
- Webpack chunk/module ids are kept readable (`chunkIds: 'named', moduleIds: 'named'`).

## Testing Guidelines
- Frameworks: Node’s built-in `node --test`, Playwright for E2E.
- Place unit/integration specs under `packages/e2e/rsc`. Name with `.test.js`.
- E2E specs live in `packages/e2e/e2e`; keep them idempotent and avoid relying on pre-existing data.
- Run `pnpm run build` before E2E to ensure assets exist.

## Commit & PR Expectations
- Use concise, descriptive commit messages (e.g., `fix: inline action manifest ids`).
- For PRs, include: summary of changes, testing performed (`pnpm test:rsc`, `pnpm test:e2e:rsc`), and any follow-up risks or TODOs.

## Module Federation Configuration
- ALL Module Federation plugins MUST include `experiments: { asyncStartup: true }` in their configuration (both client and server).
- ALL shared modules MUST use `eager: false` - no exceptions. The federation runtime handles async loading.
- Server-side code using asyncStartup bundles must `await` the module loads since module init is async.
- Use separate share scopes for different layers: `'client'` for browser bundles, `'rsc'` for RSC server bundles.
- Shared modules must also specify `layer` and `issuerLayer` matching the webpack layer they belong to (e.g., `client`, `rsc`, `ssr`).

## Security & Config Tips
- Do not check `packages/*/build` or credentials into git; `.gitignore` already covers build artifacts.
- If enabling Postgres locally, gate with `USE_POSTGRES` and ensure fallback to the mock DB for offline runs.
76 changes: 76 additions & 0 deletions apps/rsc-demo/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to make participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies within all project spaces, and it also applies when
an individual is representing the project or its community in public spaces.
Examples of representing a project or community include using an official
project e-mail address, posting via an official social media account, or acting
as an appointed representative at an online or offline event. Representation of
a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at <[email protected]>. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
12 changes: 12 additions & 0 deletions apps/rsc-demo/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:lts-hydrogen

WORKDIR /opt/notes-app

COPY package.json package-lock.json ./

RUN npm install --legacy-peer-deps

COPY . .

ENTRYPOINT [ "npm", "run" ]
CMD [ "start" ]
21 changes: 21 additions & 0 deletions apps/rsc-demo/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Facebook, Inc. and its affiliates.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading