Skip to content

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

Fix ts and no-posts-found errors

Terry Sutton77cc9ec5fc54
diff --git a/apps/www/pages/blog.tsx b/apps/www/pages/blog.tsx
index 470a94ee476..91382f96787 100644
--- a/apps/www/pages/blog.tsx
+++ b/apps/www/pages/blog.tsx
@@ -19,48 +19,33 @@ export async function getStaticProps() {
const allPostsData = getSortedPosts('_blog', undefined, undefined, '** BLOG PAGE **')
const categories = getAllCategories('_blog')
const rss = generateRss(allPostsData)
- // @ts-ignore
- const planetPgPosts = allPostsData.filter((post) => post.tags.includes('planetpg'))
-
- const planetPgPavel = planetPgPosts.filter((post) => post.author.includes('pavel'))
- const planetPgAlexander = planetPgPosts.filter((post) => post.author.includes('alexander'))
- const planetPgMichel = planetPgPosts.filter((post) => post.author.includes('michel'))
- const planetPgSteve = planetPgPosts.filter((post) => post.author.includes('steve_chavez'))
- const planetPgAngelico = planetPgPosts.filter((post) =>
- post.author.includes('angelico_de_los_reyes')
- )
- const planetPgOli = planetPgPosts.filter((post) => post.author.includes('oli_rice'))
- const planetPgMark = planetPgPosts.filter((post) => post.author.includes('burggraf'))
- const planetPgVictor = planetPgPosts.filter((post) => post.author.includes('victor'))
- const planetPgPaul = planetPgPosts.filter((post) => post.author.includes('paul_copplestone'))
- const planetPgAnt = planetPgPosts.filter((post) => post.author.includes('ant_wilson'))
-
- const planetPgrssPavel = generateRss(planetPgPavel)
- const planetPgrssAlexander = generateRss(planetPgAlexander)
- const planetPgrssMichel = generateRss(planetPgMichel)
- const planetPgrssSteve = generateRss(planetPgSteve)
- const planetPgrssAngelico = generateRss(planetPgAngelico)
- const planetPgrssOli = generateRss(planetPgOli)
- const planetPgrssMark = generateRss(planetPgMark)
- const planetPgrssVictor = generateRss(planetPgVictor)
- const planetPgrssPaul = generateRss(planetPgPaul)
- const planetPgrssAnt = generateRss(planetPgAnt)
// create a rss feed in public directory
// rss feed is added via <Head> component in render return
fs.writeFileSync('./public/rss.xml', rss)
- // create separate feed for posts to promote in PlanetPG for each author
- fs.writeFileSync('./public/planetpg-pavel-rss.xml', planetPgrssPavel)
- fs.writeFileSync('./public/planetpg-alexander-rss.xml', planetPgrssAlexander)
- fs.writeFileSync('./public/planetpg-michel-rss.xml', planetPgrssMichel)
- fs.writeFileSync('./public/planetpg-steve-rss.xml', planetPgrssSteve)
- fs.writeFileSync('./public/planetpg-angelico-rss.xml', planetPgrssAngelico)
- fs.writeFileSync('./public/planetpg-oli-rss.xml', planetPgrssOli)
- fs.writeFileSync('./public/planetpg-mark-rss.xml', planetPgrssMark)
- fs.writeFileSync('./public/planetpg-victor-rss.xml', planetPgrssVictor)
- fs.writeFileSync('./public/planetpg-paul-rss.xml', planetPgrssPaul)
- fs.writeFileSync('./public/planetpg-ant-rss.xml', planetPgrssAnt)
+ // generate a series of rss feeds for each author (for PlanetPG)
+ const planetPgPosts = allPostsData.filter((post: any) => post.tags.includes('planetpg'))
+
+ const authors = [
+ 'alexander',
+ 'michel',
+ 'steve_chavez',
+ 'angelico_de_los_reyes',
+ 'oli_rice',
+ 'burggraf',
+ 'victor',
+ 'paul_copplestone',
+ 'ant_wilson',
+ ]
+
+ authors.forEach((author) => {
+ const authorPosts = planetPgPosts.filter((post: any) => post.author.includes(author))
+ if (authorPosts.length > 0) {
+ const authorRss = generateRss(authorPosts)
+ fs.writeFileSync(`./public/planetpg-${author}-rss.xml`, authorRss)
+ }
+ })
return {
props: {
diff --git a/apps/www/public/planetpg-angelico_de_los_reyes-rss.xml b/apps/www/public/planetpg-angelico_de_los_reyes-rss.xml
new file mode 100644
index 00000000000..280497b278e
--- /dev/null
+++ b/apps/www/public/planetpg-angelico_de_los_reyes-rss.xml
@@ -0,0 +1,40 @@
+
+ <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>Blog - Supabase</title>
+ <link>https://supabase.com</link>
+ <description>Latest news from Supabase</description>
+ <language>en</language>
+ <lastBuildDate>Thu, 15 Dec 2022 03:03:30 +0000</lastBuildDate>
+ <atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/>
+ <item>
+ <guid>https://supabase.com/blog/postgres-point-in-time-recovery</guid>
+ <title>Point in Time Recovery is now available for Pro projects</title>
+ <link>https://supabase.com/blog/postgres-point-in-time-recovery</link>
+ <description>We're making PITR available for more projects, with a new Dashboard UI that makes it simple to use.</description>
+ <pubDate>Thu, 15 Dec 2022 03:03:30 +0000</pubDate>
+</item>
+<item>
+ <guid>https://supabase.com/blog/continuous-postgresql-backup-walg</guid>
+ <title>Continuous PostgreSQL Backups using WAL-G</title>
+ <link>https://supabase.com/blog/continuous-postgresql-backup-walg</link>
+ <description>Have you ever wanted to restore your database's state to a particular moment in time? This post explains how, using WAL-G.</description>
+ <pubDate>Sun, 02 Aug 2020 02:02:30 +0000</pubDate>
+</item>
+<item>
+ <guid>https://supabase.com/blog/postgresql-templates</guid>
+ <title>What are PostgreSQL Templates?</title>
+ <link>https://supabase.com/blog/postgresql-templates</link>
+ <description>What are PostgreSQL templates and what are they used for?</description>
+ <pubDate>Thu, 09 Jul 2020 02:02:30 +0000</pubDate>
+</item>
+<item>
+ <guid>https://supabase.com/blog/postgresql-physical-logical-backups</guid>
+ <title>Physical vs Logical Backups in PostgreSQL</title>
+ <link>https://supabase.com/blog/postgresql-physical-logical-backups</link>
+ <description>What are physical and logical backups in Postgres?</description>
+ <pubDate>Tue, 07 Jul 2020 02:02:30 +0000</pubDate>
+</item>
+
+ </channel>
+ </rss>
diff --git a/apps/www/public/planetpg-ant_wilson-rss.xml b/apps/www/public/planetpg-ant_wilson-rss.xml
new file mode 100644
index 00000000000..b0afb8913f2
--- /dev/null
+++ b/apps/www/public/planetpg-ant_wilson-rss.xml
@@ -0,0 +1,19 @@
+
+ <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>Blog - Supabase</title>
+ <link>https://supabase.com</link>
+ <description>Latest news from Supabase</description>
+ <language>en</language>
+ <lastBuildDate>Sat, 27 Feb 2021 03:03:30 +0000</lastBuildDate>
+ <atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/>
+ <item>
+ <guid>https://supabase.com/blog/cracking-postgres-interview</guid>
+ <title>Cracking PostgreSQL Interview Questions</title>
+ <link>https://supabase.com/blog/cracking-postgres-interview</link>
+ <description>Understand the top PostgreSQL Interview Questions</description>
+ <pubDate>Sat, 27 Feb 2021 03:03:30 +0000</pubDate>
+</item>
+
+ </channel>
+ </rss>
diff --git a/apps/www/public/planetpg-burggraf-rss.xml b/apps/www/public/planetpg-burggraf-rss.xml
new file mode 100644
index 00000000000..3f3db745b40
--- /dev/null
+++ b/apps/www/public/planetpg-burggraf-rss.xml
@@ -0,0 +1,26 @@
+
+ <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>Blog - Supabase</title>
+ <link>https://supabase.com</link>
+ <description>Latest news from Supabase</description>
+ <language>en</language>
+ <lastBuildDate>Wed, 23 Nov 2022 03:03:30 +0000</lastBuildDate>
+ <atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/>
+ <item>
+ <guid>https://supabase.com/blog/sql-or-nosql-both-with-postgresql</guid>
+ <title>SQL or NoSQL? Why not use both (with PostgreSQL)?</title>
+ <link>https://supabase.com/blog/sql-or-nosql-both-with-postgresql</link>
+ <description>How to turn Postgres into an easy-to-use NoSQL database that retains all the power of SQL</description>
+ <pubDate>Wed, 23 Nov 2022 03:03:30 +0000</pubDate>
+</item>
+<item>
+ <guid>https://supabase.com/blog/postgres-wasm</guid>
+ <title>Postgres WASM by Snaplet and Supabase</title>
+ <link>https://supabase.com/blog/postgres-wasm</link>
+ <description>We're open sourcing postgres-wasm, a PostgresQL server that runs inside a browser, with our friends at Snaplet.</description>
+ <pubDate>Sun, 02 Oct 2022 02:02:30 +0000</pubDate>
+</item>
+
+ </channel>
+ </rss>
diff --git a/apps/www/public/planetpg-michel-rss.xml b/apps/www/public/planetpg-michel-rss.xml
new file mode 100644
index 00000000000..8df9cc5a91c
--- /dev/null
+++ b/apps/www/public/planetpg-michel-rss.xml
@@ -0,0 +1,26 @@
+
+ <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>Blog - Supabase</title>
+ <link>https://supabase.com</link>
+ <description>Latest news from Supabase</description>
+ <language>en</language>
+ <lastBuildDate>Thu, 15 Dec 2022 03:03:30 +0000</lastBuildDate>
+ <atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/>
+ <item>
+ <guid>https://supabase.com/blog/vault-now-in-beta</guid>
+ <title>Supabase Vault is now in Beta</title>
+ <link>https://supabase.com/blog/vault-now-in-beta</link>
+ <description>A Postgres extension to store encrypted secrets and encrypt data.</description>
+ <pubDate>Thu, 15 Dec 2022 03:03:30 +0000</pubDate>
+</item>
+<item>
+ <guid>https://supabase.com/blog/transparent-column-encryption-with-postgres</guid>
+ <title>Transparent Column Encryption with Postgres</title>
+ <link>https://supabase.com/blog/transparent-column-encryption-with-postgres</link>
+ <description>Using pgsodium's Transparent Column Encryption to encrypt data and provide your users with row-level encryption.</description>
+ <pubDate>Wed, 30 Nov 2022 03:03:30 +0000</pubDate>
+</item>
+
+ </channel>
+ </rss>
diff --git a/apps/www/public/planetpg-oli_rice-rss.xml b/apps/www/public/planetpg-oli_rice-rss.xml
new file mode 100644
index 00000000000..da3f0ad119b
--- /dev/null
+++ b/apps/www/public/planetpg-oli_rice-rss.xml
@@ -0,0 +1,26 @@
+
+ <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>Blog - Supabase</title>
+ <link>https://supabase.com</link>
+ <description>Latest news from Supabase</description>
+ <language>en</language>
+ <lastBuildDate>Thu, 15 Dec 2022 03:03:30 +0000</lastBuildDate>
+ <atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/>
+ <item>
+ <guid>https://supabase.com/blog/pg-graphql-v1</guid>
+ <title>pg_graphql v1.0</title>
+ <link>https://supabase.com/blog/pg-graphql-v1</link>
+ <description>Announcing the v1.0 release of pg_graphql</description>
+ <pubDate>Thu, 15 Dec 2022 03:03:30 +0000</pubDate>
+</item>
+<item>
+ <guid>https://supabase.com/blog/audit</guid>
+ <title>Postgres Auditing in 150 lines of SQL</title>
+ <link>https://supabase.com/blog/audit</link>
+ <description>PostgreSQL has a robust set of features which we can leverage to create a generic auditing solution in 150 lines of SQL.</description>
+ <pubDate>Mon, 07 Mar 2022 03:03:30 +0000</pubDate>
+</item>
+
+ </channel>
+ </rss>
diff --git a/apps/www/public/planetpg-paul_copplestone-rss.xml b/apps/www/public/planetpg-paul_copplestone-rss.xml
new file mode 100644
index 00000000000..784975b7a6f
--- /dev/null
+++ b/apps/www/public/planetpg-paul_copplestone-rss.xml
@@ -0,0 +1,33 @@
+
+ <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>Blog - Supabase</title>
+ <link>https://supabase.com</link>
+ <description>Latest news from Supabase</description>
+ <language>en</language>
+ <lastBuildDate>Mon, 27 Jun 2022 02:02:30 +0000</lastBuildDate>
+ <atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/>
+ <item>
+ <guid>https://supabase.com/blog/partial-postgresql-data-dumps-with-rls</guid>
+ <title>Partial data dumps using Postgres Row Level Security</title>
+ <link>https://supabase.com/blog/partial-postgresql-data-dumps-with-rls</link>
+ <description>Using RLS to create seed files for local PostgreSQL testing.</description>
+ <pubDate>Mon, 27 Jun 2022 02:02:30 +0000</pubDate>
+</item>
+<item>
+ <guid>https://supabase.com/blog/postgres-as-a-cron-server</guid>
+ <title>Postgres as a CRON Server</title>
+ <link>https://supabase.com/blog/postgres-as-a-cron-server</link>
+ <description>Running repetitive tasks with your Postgres database.</description>
+ <pubDate>Fri, 05 Mar 2021 03:03:30 +0000</pubDate>
+</item>
+<item>
+ <guid>https://supabase.com/blog/postgresql-views</guid>
+ <title>Postgres Views</title>
+ <link>https://supabase.com/blog/postgresql-views</link>
+ <description>Creating and using a view in PostgreSQL.</description>
+ <pubDate>Wed, 18 Nov 2020 03:03:30 +0000</pubDate>
+</item>
+
+ </channel>
+ </rss>
diff --git a/apps/www/public/planetpg-steve_chavez-rss.xml b/apps/www/public/planetpg-steve_chavez-rss.xml
new file mode 100644
index 00000000000..0b47a94b124
--- /dev/null
+++ b/apps/www/public/planetpg-steve_chavez-rss.xml
@@ -0,0 +1,26 @@
+
+ <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>Blog - Supabase</title>
+ <link>https://supabase.com</link>
+ <description>Latest news from Supabase</description>
+ <language>en</language>
+ <lastBuildDate>Thu, 15 Dec 2022 03:03:30 +0000</lastBuildDate>
+ <atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/>
+ <item>
+ <guid>https://supabase.com/blog/postgrest-11-prerelease</guid>
+ <title>PostgREST 11 pre-release</title>
+ <link>https://supabase.com/blog/postgrest-11-prerelease</link>
+ <description>Describes new features of PostgREST 11 pre-release</description>
+ <pubDate>Thu, 15 Dec 2022 03:03:30 +0000</pubDate>
+</item>
+<item>
+ <guid>https://supabase.com/blog/roles-postgres-hooks</guid>
+ <title>Protecting reserved roles with PostgreSQL Hooks</title>
+ <link>https://supabase.com/blog/roles-postgres-hooks</link>
+ <description>Using Postgres Hooks to protect functionality in your Postgres database.</description>
+ <pubDate>Thu, 01 Jul 2021 02:02:30 +0000</pubDate>
+</item>
+
+ </channel>
+ </rss>
diff --git a/apps/www/public/planetpg-victor-rss.xml b/apps/www/public/planetpg-victor-rss.xml
new file mode 100644
index 00000000000..f3fbdfd181f
--- /dev/null
+++ b/apps/www/public/planetpg-victor-rss.xml
@@ -0,0 +1,33 @@
+
+ <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>Blog - Supabase</title>
+ <link>https://supabase.com</link>
+ <description>Latest news from Supabase</description>
+ <language>en</language>
+ <lastBuildDate>Thu, 13 Oct 2022 02:02:30 +0000</lastBuildDate>
+ <atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/>
+ <item>
+ <guid>https://supabase.com/blog/postgres-full-text-search-vs-the-rest</guid>
+ <title>Postgres Full Text Search vs the rest</title>
+ <link>https://supabase.com/blog/postgres-full-text-search-vs-the-rest</link>
+ <description>Comparing one of the most popular Postgres features against alternatives</description>
+ <pubDate>Thu, 13 Oct 2022 02:02:30 +0000</pubDate>
+</item>
+<item>
+ <guid>https://supabase.com/blog/choosing-a-postgres-primary-key</guid>
+ <title>Choosing a Postgres Primary Key</title>
+ <link>https://supabase.com/blog/choosing-a-postgres-primary-key</link>
+ <description>Turns out the question of which identifier to use as a Primary Key is complicated -- we're going to dive into some of the complexity and inherent trade-offs, and figure things out</description>
+ <pubDate>Wed, 07 Sep 2022 02:02:30 +0000</pubDate>
+</item>
+<item>
+ <guid>https://supabase.com/blog/seen-by-in-postgresql</guid>
+ <title>Implementing "seen by" functionality with Postgres</title>
+ <link>https://supabase.com/blog/seen-by-in-postgresql</link>
+ <description>Different approaches for tracking visitor counts with PostgreSQL.</description>
+ <pubDate>Sun, 17 Jul 2022 02:02:30 +0000</pubDate>
+</item>
+
+ </channel>
+ </rss>