diff --git a/src/build.js b/src/build.js index 10ef371..5fd48c4 100644 --- a/src/build.js +++ b/src/build.js @@ -81,9 +81,9 @@ const f = async () => { const files = await readdir(publicPath) await Promise.all(files.map(async (file) => { - // cf pages limits file size to 26.2MB + // cloudflare pages limits file size to 25MB // compressed (br/gz) files are excluded - if (file.startsWith('phishing-filter') && file.endsWith('.rules')) { + if (process.env.CF_PAGES && file.startsWith('phishing-filter') && file.endsWith('.rules')) { await rm(join(publicPath, file)) } }))