We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a964c7a commit 62faedcCopy full SHA for 62faedc
src/build/verification.ts
@@ -96,12 +96,12 @@ export async function verifyNetlifyFormsWorkaround(ctx: PluginContext) {
96
const srcDir = ctx.resolveFromSiteDir('public')
97
const paths = await glob(join(srcDir, '**/*.html'))
98
try {
99
- const hasWorkaround = await paths.some(async (path): Promise<boolean> => {
+ for (const path of paths) {
100
const html = await readFile(path, 'utf-8')
101
- return formDetectionRegex.test(html)
102
- })
103
- if (hasWorkaround) {
104
- verifications.add('netlifyFormsWorkaround')
+ if (formDetectionRegex.test(html)) {
+ verifications.add('netlifyFormsWorkaround')
+ return
+ }
105
}
106
} catch (error) {
107
ctx.failBuild('Failed verifying public files', error)
0 commit comments