Skip to content

Commit

Permalink
Fix Contentlayer build TS checks, contact page draft
Browse files Browse the repository at this point in the history
  • Loading branch information
Kawtar Choubari committed Sep 6, 2023
1 parent 1927606 commit f7216d5
Show file tree
Hide file tree
Showing 6 changed files with 4,025 additions and 3,160 deletions.
6 changes: 3 additions & 3 deletions app/contact/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ export default function Contact() {
});
console.log("res ", res);
const resBody = await res.json();
// console.log("resBody ", resBody);
if (res.status == 200) {
console.log("resBody ", resBody);
if (resBody.id) {
alert("Your message has been sent successfully");
} else {
alert("Error, try again!");
alert("Error, try again! or reach me at [email protected]");
}
clearForm();
}
Expand Down
1 change: 1 addition & 0 deletions contentlayer.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import { defineDocumentType, makeSource } from "contentlayer/source-files";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import rehypePrettyCode from "rehype-pretty-code";
Expand Down
Loading

0 comments on commit f7216d5

Please sign in to comment.