Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Captcha in forms #204

Merged
merged 6 commits into from
Mar 18, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion .env.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ GOOGLE_ACADEMIC_SHEET_NAME=

# google sheet for devcon grants
GOOGLE_DEVCON_SPREADSHEET_ID=
GOOGLE_DEVCON_SHEET_NAME=
GOOGLE_DEVCON_SHEET_NAME=

# captcha
NEXT_PUBLIC_HCAPTCHA_SITEKEY=
HCAPTCHA_SECRET=
9 changes: 9 additions & 0 deletions additional.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Fields, Files } from 'formidable';
nhsz marked this conversation as resolved.
Show resolved Hide resolved
import { IncomingMessage } from 'http';

declare module 'next' {
export interface NextApiRequest extends IncomingMessage {
fields?: Fields;
files?: Files;
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@emotion/react": "^11",
"@emotion/styled": "^11",
"@fontsource/libre-franklin": "^4.5.0",
"@hcaptcha/react-hcaptcha": "^1.1.1",
"@mailchimp/mailchimp_marketing": "^3.0.74",
"@socialgouv/matomo-next": "^1.2.2",
"chakra-react-select": "^3.0.1",
Expand Down