diff --git a/src/build.js b/src/build.js index 2dfbcd73..0aaabd7c 100644 --- a/src/build.js +++ b/src/build.js @@ -65,7 +65,7 @@ const f = async () => { if (isMirror === false) { await unzip(zipPath, { dir: rootPath }) // snort2.rules is over 25MB limit of CF Pages - await rm(join(rootPath, 'phishing-filter-snort2.rules'), { force: true }) + await rm(join(publicPath, 'phishing-filter-snort2.rules'), { force: true }) } else { await mkdir(publicPath, { recursive: true }) await unzip(zipPath, { dir: publicPath })