1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-28 20:35:49 -04:00

switch db from fauna to prisma & planetscale (#971)

This commit is contained in:
2022-06-23 17:26:13 -04:00
committed by GitHub
parent e782f1a8e8
commit d7eba0b39c
11 changed files with 103 additions and 247 deletions

View File

@@ -2,7 +2,6 @@ import { NextSeo } from "next-seo";
import Content from "../components/Content";
import PageTitle from "../components/PageTitle";
import Link from "../components/Link";
import Image from "../components/Image";
import IFrame from "../components/IFrame";
import Blockquote from "../components/Blockquote";
import CodeInline from "../components/CodeInline";
@@ -10,8 +9,6 @@ import { H2 } from "../components/Heading";
import { UnorderedList, ListItem } from "../components/List";
import { fathomSiteId, siteDomain } from "../lib/config";
import faunaImg from "../public/static/images/privacy/fauna_hits.png";
const Privacy = () => {
return (
<>
@@ -53,13 +50,14 @@ const Privacy = () => {
<p>
A very simple hit counter on each blog post tallies an aggregate number of pageviews (i.e.{" "}
<CodeInline>hits = hits + 1</CodeInline>) in a <Link href="https://fauna.com/">Fauna</Link> database.
Individual views and identifying (or non-identifying) details are <strong>never stored or logged</strong>.
<CodeInline>hits = hits + 1</CodeInline>) in a <Link href="https://planetscale.com/">PlanetScale</Link> SQL
database. Individual views and identifying (or non-identifying) details are{" "}
<strong>never stored or logged</strong>.
</p>
<p>
The <Link href="https://github.com/jakejarvis/jarv.is/blob/main/pages/api/hits.ts">serverless function</Link>{" "}
and{" "}
The <Link href="https://github.com/jakejarvis/jarv.is/blob/main/prisma/schema.prisma">database schema</Link>,{" "}
<Link href="https://github.com/jakejarvis/jarv.is/blob/main/pages/api/hits.ts">serverless function</Link> and{" "}
<Link href="https://github.com/jakejarvis/jarv.is/blob/main/components/HitCounter/HitCounter.tsx">
client script
</Link>{" "}
@@ -67,8 +65,6 @@ const Privacy = () => {
are public.
</p>
<Image src={faunaImg} alt="The entire database schema." />
<p>
<Link href="https://usefathom.com/ref/ZEYG0O">
<strong>Fathom Analytics</strong>