-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remote example production config (#109)
This PR updates and fixes configuration in the `RemoteComponent` example to make it work again in a production build after configuration handling changes introduced by #52 As the configuration is now a prebuilt module in production and only includes configuration entries specified in the `react-server.production.config.mjs` file, the import map and shared module resolution information were missing in the production build. Fixes static export filesize indentation Fixes remote style link URLs when used in an RSC update request Fixes remote client component import URL handling
- Loading branch information
Showing
6 changed files
with
63 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
export default { | ||
importMap: { | ||
imports: { | ||
react: "https://esm.sh/react@0.0.0-experimental-204a551e-20240926?dev", | ||
"react/jsx-dev-runtime": | ||
"https://esm.sh/react@0.0.0-experimental-204a551e-20240926/jsx-dev-runtime?dev", | ||
"react/jsx-runtime": | ||
"https://esm.sh/react@0.0.0-experimental-204a551e-20240926/jsx-runtime?dev", | ||
"react-dom": | ||
"https://esm.sh/react-dom@0.0.0-experimental-204a551e-20240926?dev", | ||
"react-dom/client": | ||
"https://esm.sh/react-dom@0.0.0-experimental-204a551e-20240926/client?dev", | ||
"react-server-dom-webpack/client.browser": | ||
"https://esm.sh/react-server-dom-webpack@0.0.0-experimental-204a551e-20240926/client.browser?dev", | ||
"http://[::1]:3001/": "/", | ||
"http://localhost:3003/": "/", | ||
}, | ||
}, | ||
resolve: { | ||
shared: [ | ||
"react", | ||
"react/jsx-dev-runtime", | ||
"react/jsx-runtime", | ||
"react-dom", | ||
"react-dom/client", | ||
"react-server-dom-webpack/client.browser", | ||
], | ||
}, | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export default { | ||
importMap: { | ||
imports: { | ||
react: "https://esm.sh/react@0.0.0-experimental-204a551e-20240926", | ||
"react/jsx-runtime": | ||
"https://esm.sh/react@0.0.0-experimental-204a551e-20240926/jsx-runtime", | ||
"react-dom": | ||
"https://esm.sh/react-dom@0.0.0-experimental-204a551e-20240926", | ||
"react-dom/client": | ||
"https://esm.sh/react-dom@0.0.0-experimental-204a551e-20240926/client", | ||
"react-server-dom-webpack/client.browser": | ||
"https://esm.sh/react-server-dom-webpack@0.0.0-experimental-204a551e-20240926/client.browser", | ||
"http://localhost:3003/client/node_modules/@lazarv/react-server/": | ||
"/client/node_modules/@lazarv/react-server/", | ||
}, | ||
}, | ||
resolve: { | ||
shared: [ | ||
"react", | ||
"react/jsx-runtime", | ||
"react-dom", | ||
"react-dom/client", | ||
"react-server-dom-webpack/client.browser", | ||
], | ||
}, | ||
}; |
This file contains 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
This file contains 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
This file contains 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