From 700768ef47b2fa4d7e0672b41a13a63e67d9bb37 Mon Sep 17 00:00:00 2001 From: sudoaugustin Date: Mon, 5 Aug 2024 13:50:14 +0630 Subject: [PATCH] fix: bug --- packages/supex/src/plugins/manifest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/supex/src/plugins/manifest.ts b/packages/supex/src/plugins/manifest.ts index 0a7de24..3dd91f1 100644 --- a/packages/supex/src/plugins/manifest.ts +++ b/packages/supex/src/plugins/manifest.ts @@ -204,7 +204,7 @@ async function generateManifest({ server, outdir, browser, isBuild, metafile }: if (!security) security = {}; if (!security['default-src']) security['default-src'] = "'self'"; const policy = Object.entries(security).reduce( - (string, [name, value]) => `${string} ${name} ${value}${name === 'default-src' ? ` ${server}` : ''};`, + (string, [name, value]) => `${string} ${name} ${value}${name === 'default-src' && !isBuild ? ` ${server}` : ''};`, '', );