Skip to content

Commit

Permalink
fix(engine-core): base 64 encode OVERWRITE_DATASOURCES
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 committed May 18, 2020
1 parent fb05bb5 commit ddcc31a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/packages/engine-core/src/NodeEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,12 @@ ${chalk.dim("In case we're mistaken, please report this to us 🙏.")}`)
debug(env)
debug({ cwd: this.cwd })

if (env.OVERWRITE_DATASOURCES) {
env.OVERWRITE_DATASOURCES = Buffer.from(
env.OVERWRITE_DATASOURCES,
).toString('base64')
}

const prismaPath = await this.getPrismaPath()

const flags = ['--enable-raw-queries', ...this.flags]
Expand Down

0 comments on commit ddcc31a

Please sign in to comment.