-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
folder structure + Next Images + readme asset
- Loading branch information
Showing
41 changed files
with
143 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"extends": ["next/babel", "next/core-web-vitals"] | ||
"extends": ["next", "next/core-web-vitals"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,38 +4,38 @@ import { NextApiRequest, NextApiResponse } from 'next' | |
|
||
|
||
export default async function handler(request: NextApiRequest, response: NextApiResponse) { | ||
const API_KEY = process.env.AIRTABLE_PERSONAL_ACCESS_TOKEN | ||
const AIRTABLE_BASE = process.env.AIRTABLE_BASE | ||
const AIRTABLE_VIEW = process.env.AIRTABLE_TABLE_NAME | ||
// const API_KEY = process.env.AIRTABLE_PERSONAL_ACCESS_TOKEN | ||
// const AIRTABLE_BASE = process.env.AIRTABLE_BASE | ||
// const AIRTABLE_VIEW = process.env.AIRTABLE_TABLE_NAME | ||
|
||
const base = new Airtable({apiKey: API_KEY}).base(AIRTABLE_BASE || ""); | ||
// const base = new Airtable({apiKey: API_KEY}).base(AIRTABLE_BASE || ""); | ||
|
||
const email = request.query.email | ||
// const email = request.query.email | ||
|
||
const res = await base(AIRTABLE_VIEW || "") | ||
.select({ filterByFormula: `email="${email}"`}) | ||
.firstPage() | ||
.then((records) => { | ||
if (records.length === 0) { | ||
return "None" | ||
} | ||
return records | ||
}) | ||
.catch((err: any) => { | ||
console.log(err) | ||
return err; | ||
}); | ||
// const res = await base(AIRTABLE_VIEW || "") | ||
// .select({ filterByFormula: `email="${email}"`}) | ||
// .firstPage() | ||
// .then((records) => { | ||
// if (records.length === 0) { | ||
// return "None" | ||
// } | ||
// return records | ||
// }) | ||
// .catch((err: any) => { | ||
// console.log(err) | ||
// return err; | ||
// }); | ||
|
||
// const res = [{ | ||
// "fields": { | ||
// "Name": 'Descope', | ||
// "University": 'University of Waterloo', | ||
// "What year are you?": 'First year', | ||
// "Email": '[email protected]', | ||
// 'Why AuthHacks?': "Authentication is a fundamental part of any startup, SaaS, or business. The workshops and connections I'll make will profoundly broaden my knowledge of good security practices and industry leaders.", | ||
// 'Accepted': true | ||
// } | ||
// }] | ||
const res = [{ | ||
"fields": { | ||
"Name": 'Descope', | ||
"University": 'University of Waterloo', | ||
"What year are you?": 'First year', | ||
"Email": '[email protected]', | ||
'Why AuthHacks?': "Authentication is a fundamental part of any startup, SaaS, or business. The workshops and connections I'll make will profoundly broaden my knowledge of good security practices and industry leaders.", | ||
'Accepted': true | ||
} | ||
}] | ||
|
||
return response.status(200).json( | ||
{ | ||
|
Oops, something went wrong.