working with db, docker working, small error with personal data
This commit is contained in:
8
server/db/sql.js
Normal file
8
server/db/sql.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// server/db/sql.js
|
||||
import postgres from 'postgres';
|
||||
import 'dotenv/config'
|
||||
|
||||
console.log("url: ", process.env.LOCAL_DATABASE_URL)
|
||||
const sql = postgres(process.env.LOCAL_DATABASE_URL);
|
||||
|
||||
export default sql;
|
||||
Reference in New Issue
Block a user