Skip to content

Commit

Permalink
better pocketbase
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Wrege committed Aug 14, 2023
1 parent c130c06 commit a0c82f8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions db/city.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ import type {
} from "./types";
import h2p from "html2plaintext";

export const pocketBase = new PocketBase(
process.env.DB_HOST ?? "http://127.0.0.1:8090"
);
const dbHost = process.env.DB_HOST ?? "http://127.0.0.1:8090";
export const pocketBase = new PocketBase(dbHost);

console.log("DB_HOST:", process.env.DB_HOST);
console.log("Using (DB_HOST) for pocketbase:", dbHost);

pocketBase.autoCancellation(true);

Expand Down

0 comments on commit a0c82f8

Please sign in to comment.