Skip to content

Commit

Permalink
Don't require federation db for local development (#9234)
Browse files Browse the repository at this point in the history
  • Loading branch information
raykyri authored Sep 16, 2024
2 parents 59180cb + 22e665b commit 0c336e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/shared/src/canvas/runtime/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export const CANVAS_TOPIC = contractTopic;
export const startCanvasNode = async () => {
const path =
process.env.FEDERATION_POSTGRES_DB_URL ??
'postgresql://commonwealth:edgeware@localhost/federation';
(process.env.APP_ENV === 'local'
? undefined
: 'postgresql://commonwealth:edgeware@localhost/federation');
const announce =
process.env.FEDERATION_ANNOUNCE_ADDRESS ?? '/ip4/127.0.0.1/tcp/8090/ws';
const listen =
Expand Down

0 comments on commit 0c336e9

Please sign in to comment.