Skip to content

Commit 8c0afc9

Browse files
fix: update module loading configuration to use environment-specific prefix and set crossOrigin to null
1 parent 1953c2f commit 8c0afc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

node_package/src/getReactServerComponent.server.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ const createSSRManifest = async (
5959
// In our case, since the server code is bundled into a single bundle, there is no need to load additional JavaScript modules.
6060
// As a result, we set this property to an empty object because it will not be used.
6161
moduleLoading: {
62-
prefix: '/webpack/development/',
62+
prefix: `/webpack/${process.env.NODE_ENV}/`,
63+
crossOrigin: null,
6364
},
6465
moduleMap,
6566
};

0 commit comments

Comments
 (0)