diff --git a/package.json b/package.json index 50a8709..bf4c260 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/core", - "version": "1.2.3", + "version": "1.2.4", "description": "", "license": "MIT", "author": "João Lenon ", diff --git a/src/Ignite.ts b/src/Ignite.ts index a515223..2f5b699 100644 --- a/src/Ignite.ts +++ b/src/Ignite.ts @@ -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