File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,10 @@ export default defineConfig({
1919 CF_CAPTCHA_SITE_KEY : envField . string ( {
2020 context : 'server' ,
2121 access : 'secret' ,
22- // localhost - always pass
23- // default: '1x00000000000000000000AA',
2422 } ) ,
2523 CF_CAPTCHA_SECRET_KEY : envField . string ( {
2624 context : 'server' ,
2725 access : 'secret' ,
28- // localhost - always pass
29- // default: '1x0000000000000000000000000000000AA',
3026 } ) ,
3127 } ,
3228 } ,
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ export const prerender = false;
77export const POST : APIRoute = async ( { request } ) => {
88 const { captchaToken } = ( await request . json ( ) ) as { captchaToken : string } ;
99 try {
10+ console . log ( 'CF_CAPTCHA_SECRET_KEY' , CF_CAPTCHA_SECRET_KEY ) ;
11+ console . log ( 'captchaToken' , captchaToken ) ;
1012 const captchaVerificationResult = await verifyCaptcha ( CF_CAPTCHA_SECRET_KEY , captchaToken ) ;
1113
1214 if ( captchaVerificationResult . success ) {
You can’t perform that action at this time.
0 commit comments