This commit is contained in:
2025-02-24 14:31:06 +01:00
parent 1d0541b1bd
commit 0161931cb4
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
GOOGLE_CALLBACK_URI="http://localhost:5173/login/google/callback"
MEMEGRAPH_URI="bolt://localhost:7687"
MEMGRAPH_URI="bolt://localhost:7687"
MEMGRAPH_USER="memgraph"
MEMGRAPH_PASSWORD="memgraph"

View File

@@ -1,9 +1,9 @@
import memgraph from 'neo4j-driver';
import type { Driver } from 'neo4j-driver';
import { MEMEGRAPH_URI, MEMGRAPH_USER, MEMGRAPH_PASSWORD } from '$env/static/private';
import { MEMGRAPH_URI, MEMGRAPH_USER, MEMGRAPH_PASSWORD } from '$env/static/private';
export const driverInstance: Driver = memgraph.driver(
MEMEGRAPH_URI || 'bolt://localhost:7687',
export const DB: Driver = memgraph.driver(
MEMGRAPH_URI || 'bolt://localhost:7687',
memgraph.auth.basic(
MEMGRAPH_USER || 'memgraph',
MEMGRAPH_PASSWORD || 'memgraph'