Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: remove console logs

Jonathan Summers-Muir6093df1319da
diff --git a/www/components/Nav/index.tsx b/www/components/Nav/index.tsx
index 7769b3b114d..1201a744970 100644
--- a/www/components/Nav/index.tsx
+++ b/www/components/Nav/index.tsx
@@ -26,7 +26,6 @@ const Nav = (props: Props) => {
React.useEffect(() => {
if (open) {
- console.log('open if')
// Prevent scrolling on mount
document.body.style.overflow = 'hidden'
} else {
diff --git a/www/pages/blog.tsx b/www/pages/blog.tsx
index 46ede8cb95c..61a8e0ffc77 100644
--- a/www/pages/blog.tsx
+++ b/www/pages/blog.tsx
@@ -121,7 +121,6 @@ function Blog(props: any) {
}
function FeaturedThumb(blog: PostTypes) {
- console.log(blog)
// @ts-ignore
const author = blog.author ? authors[blog.author] : authors['supabase']
@@ -182,8 +181,6 @@ function FeaturedThumb(blog: PostTypes) {
function BlogListItem(blog: PostTypes) {
// @ts-ignore
const author = blog.author ? authors[blog.author] : authors['supabase']
-
- // console.log(blog.content.substring(0, 120))
return (
<div key={blog.slug} className="pt-4 pb-12 border-b border-gray-100 dark:border-gray-600 mb-8">
<div className="mx-auto max-w-7xl cursor-pointer">
diff --git a/www/pages/blog/[year]/[month]/[day]/[slug].tsx b/www/pages/blog/[year]/[month]/[day]/[slug].tsx
index 9d9598a0b8e..1c17ec878d7 100644
--- a/www/pages/blog/[year]/[month]/[day]/[slug].tsx
+++ b/www/pages/blog/[year]/[month]/[day]/[slug].tsx
@@ -38,7 +38,6 @@ const toc = require('markdown-toc')
export async function getStaticPaths() {
const paths = getAllPostSlugs()
- console.log(paths)
return {
paths,
fallback: false,
@@ -46,8 +45,6 @@ export async function getStaticPaths() {
}
export async function getStaticProps({ params }: any) {
- console.log('hello world')
- console.log('params', params.slug)
const postContent = await getPostdata(
`${params.year}-${params.month}-${params.day}-${params.slug}`
)
@@ -62,25 +59,16 @@ export async function getStaticProps({ params }: any) {
},
})
- // console.log('tagsss', mdxSource.scope.tags)
-
const relatedPosts = getSortedPosts(5, mdxSource.scope.tags)
const allPosts = getSortedPosts()
- // console.log(lastPost.indexOf())
-
const currentIndex = allPosts
.map(function (e) {
return e.slug
})
.indexOf(params.slug)
- console.log('currentIndex', currentIndex)
- console.log('allPosts.length', allPosts.length)
-
- console.log('nextPost', allPosts[currentIndex + 1])
-
const nextPost = allPosts[currentIndex + 1]
const prevPost = allPosts[currentIndex - 1]