mirror of
https://github.com/maciejpedzich/six-degs-of-f1.git
synced 2024-11-27 15:55:47 +01:00
Migrate from Neo4j to Memgraph
This commit is contained in:
parent
94e3386774
commit
7fdb61aff1
@ -1,6 +1,6 @@
|
|||||||
import { auth, driver } from 'neo4j-driver';
|
import { auth, driver } from 'neo4j-driver';
|
||||||
|
|
||||||
export const db = driver(
|
export const db = driver(
|
||||||
import.meta.env.NEO4J_DB_URI,
|
import.meta.env.DB_URI,
|
||||||
auth.basic(import.meta.env.NEO4J_USERNAME, import.meta.env.NEO4J_PASSWORD)
|
auth.basic(import.meta.env.DB_USERNAME, import.meta.env.DB_PASSWORD)
|
||||||
);
|
);
|
||||||
|
6
src/env.d.ts
vendored
6
src/env.d.ts
vendored
@ -2,9 +2,9 @@
|
|||||||
/// <reference types="astro/client" />
|
/// <reference types="astro/client" />
|
||||||
|
|
||||||
interface ImportMetaEnv {
|
interface ImportMetaEnv {
|
||||||
readonly NEO4J_DB_URI: string;
|
readonly DB_URI: string;
|
||||||
readonly NEO4J_USERNAME: string;
|
readonly DB_USERNAME: string;
|
||||||
readonly NEO4J_PASSWORD: string;
|
readonly DB_PASSWORD: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ImportMeta {
|
interface ImportMeta {
|
||||||
|
@ -16,10 +16,9 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
|
|||||||
to the other using as few connections as possible.
|
to the other using as few connections as possible.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
The aforementioned data was sourced from <a
|
Data was sourced from <a href="http://ergast.com/mrd" target="_blank"
|
||||||
href="http://ergast.com/mrd"
|
>Ergast</a
|
||||||
target="_blank">Ergast</a
|
>. This website was built with <a href="https://astro.build" target="_blank"
|
||||||
>. The website was built with <a href="https://astro.build" target="_blank"
|
|
||||||
>Astro</a
|
>Astro</a
|
||||||
>, <a href="https://picocss.com" target="_blank">Pico CSS</a>, <a
|
>, <a href="https://picocss.com" target="_blank">Pico CSS</a>, <a
|
||||||
href="https://neo4j.com"
|
href="https://neo4j.com"
|
||||||
|
Loading…
Reference in New Issue
Block a user