Skip to content

Commit

Permalink
chore: Update migrator.ts to use environment variables for default va…
Browse files Browse the repository at this point in the history
…lues
  • Loading branch information
OXeu committed Jun 6, 2024
1 parent 57ff8cb commit e0d1909
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/migrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { $ } from "bun";
import stripIndent from 'strip-indent';
import { readdir } from "node:fs/promises";

const DB_NAME = process.env.DB_NAME ?? 'rin'
const WORKER_NAME = process.env.WORKER_NAME ?? 'rin-server'
const FRONTEND_URL = process.env.FRONTEND_URL ?? ""
const S3_FOLDER = 'images/'
const DB_NAME = process.env.DB_NAME || 'rin'
const WORKER_NAME = process.env.WORKER_NAME || 'rin-server'
const FRONTEND_URL = process.env.FRONTEND_URL || ""
const S3_FOLDER = process.env.S3_FOLDER || 'images/'

Bun.write('wrangler.toml', stripIndent(`
#:schema node_modules/wrangler/config-schema.json
Expand Down

0 comments on commit e0d1909

Please sign in to comment.