From 7fdb61aff184dd39accb4b3d0be2b1741c792461 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Maciej=20P=C4=99dzich?=
Date: Sat, 27 Jul 2024 17:28:36 +0200
Subject: [PATCH] Migrate from Neo4j to Memgraph
---
src/db/index.ts | 4 ++--
src/env.d.ts | 6 +++---
src/pages/about.astro | 7 +++----
3 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/src/db/index.ts b/src/db/index.ts
index 6adf903..8358b29 100644
--- a/src/db/index.ts
+++ b/src/db/index.ts
@@ -1,6 +1,6 @@
import { auth, driver } from 'neo4j-driver';
export const db = driver(
- import.meta.env.NEO4J_DB_URI,
- auth.basic(import.meta.env.NEO4J_USERNAME, import.meta.env.NEO4J_PASSWORD)
+ import.meta.env.DB_URI,
+ auth.basic(import.meta.env.DB_USERNAME, import.meta.env.DB_PASSWORD)
);
diff --git a/src/env.d.ts b/src/env.d.ts
index 15dc8c8..844e0be 100644
--- a/src/env.d.ts
+++ b/src/env.d.ts
@@ -2,9 +2,9 @@
///
interface ImportMetaEnv {
- readonly NEO4J_DB_URI: string;
- readonly NEO4J_USERNAME: string;
- readonly NEO4J_PASSWORD: string;
+ readonly DB_URI: string;
+ readonly DB_USERNAME: string;
+ readonly DB_PASSWORD: string;
}
interface ImportMeta {
diff --git a/src/pages/about.astro b/src/pages/about.astro
index 2b64bd5..676656d 100644
--- a/src/pages/about.astro
+++ b/src/pages/about.astro
@@ -16,10 +16,9 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
to the other using as few connections as possible.
- The aforementioned data was sourced from Ergast. The website was built with Ergast. This website was built with Astro, Pico CSS,