diff --git a/modern.config.ts b/modern.config.ts index 57798748..64ce3b58 100644 --- a/modern.config.ts +++ b/modern.config.ts @@ -30,6 +30,17 @@ export default defineConfig({ cssLoader: { url: false, }, + // Explicit dev-server CORS headers. Silences the MF modern-js warning + // about empty devServer.headers (auto-assigning "*"). Production is + // unaffected — the real reverse proxy manages CORS. + devServer: { + headers: { + "Access-Control-Allow-Origin": "*", + "Access-Control-Allow-Headers": + "Content-Type, Authorization, Accept, Accept-Language", + "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS", + }, + }, }, output: { distPath: { root: isRemote ? "dist/remote" : "dist/standalone" }, diff --git a/module-federation.config.ts b/module-federation.config.ts index c2eac089..93f7081e 100644 --- a/module-federation.config.ts +++ b/module-federation.config.ts @@ -12,4 +12,10 @@ export default createModuleFederationConfig({ react: { singleton: true, requiredVersion: "^18.2.0" }, "react-dom": { singleton: true, requiredVersion: "^18.2.0" }, }, + // Disable DTS generation at build time. @module-federation/dts-plugin@2.3.3 + // fails against our strict tsconfig (exactOptionalPropertyTypes + + // noUncheckedIndexedAccess) and logs a TYPE-001 error. Types for the + // exposed modules are shipped to consumers via their own dev-time + // toolchain; the runtime does not need them. + dts: false, }); diff --git a/src/styles/_layout.scss b/src/styles/_layout.scss index 84730102..fd6cb93c 100644 --- a/src/styles/_layout.scss +++ b/src/styles/_layout.scss @@ -380,7 +380,7 @@ body { @media print { * { -webkit-print-color-adjust: exact; - color-adjust: exact !important; + print-color-adjust: exact !important; } .p-print-none {