Skip to content

Commit

Permalink
Merge pull request #26 from AthennaIO/develop
Browse files Browse the repository at this point in the history
fix: replace quotes of environment
  • Loading branch information
jlenon7 authored Apr 8, 2022
2 parents 8a789af + f4b49a5 commit 1220101
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/core",
"version": "1.2.3",
"version": "1.2.4",
"description": "",
"license": "MIT",
"author": "João Lenon <[email protected]>",
Expand Down
6 changes: 5 additions & 1 deletion src/Ignite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ export class Ignite {
.trim()

if (env.includes('process.env.NODE_ENV')) {
env = env.split('process.env.NODE_ENV')[1].replace(/\|\|/g, '').trim()
env = env
.split('process.env.NODE_ENV')[1]
.replace(/'|"/g, '')
.replace(/\|/g, '')
.trim()
}

process.env.NODE_ENV = env
Expand Down

0 comments on commit 1220101

Please sign in to comment.