Skip to content

Commit 3f486ab

Browse files
authored
Merge pull request #2179 from Hyperkid123/static-cors
minor development environment
2 parents c4ed81b + d1cb75c commit 3f486ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/config-utils/src/federated-modules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const federatedModules = ({
9898
/**
9999
* Make sure the unleash proxy client is a singleton
100100
*/
101-
if (dependencies['@unleash/proxy-client-react']) {
101+
if (dependencies['@unleash/proxy-client-react'] && !sharedDeps['@unleash/proxy-client-react']) {
102102
sharedDeps['@unleash/proxy-client-react'] = {
103103
singleton: true,
104104
eager: false,

packages/config-utils/src/serve-federated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function federate(argv: Record<string, any>, cwd: string) {
2626

2727
concurrently([
2828
`${WEBPACK_PATH} --config ${configPath} --watch --output-path ${path.join(outputPath, config.output.publicPath)}`,
29-
`${HTTP_SERVER_PATH} ${outputPath} -p ${argv.port || 8003} -c-1 -a ::`,
29+
`${HTTP_SERVER_PATH} ${outputPath} -p ${argv.port || 8003} -c-1 -a :: --cors=*`,
3030
]);
3131
});
3232
} catch (error) {

0 commit comments

Comments
 (0)