Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible recursive expansion regression (3) #123

Open
kioan000 opened this issue Mar 15, 2024 · 0 comments
Open

Possible recursive expansion regression (3) #123

kioan000 opened this issue Mar 15, 2024 · 0 comments

Comments

@kioan000
Copy link

Sorry to bother you again

While upgrading from 10.0 to latest 11.0.6

the following .env

FIRST_PAGE_URL=${PROJECT_PUBLIC_HOST}/first-page

...
MOCK_SERVER_HOST=http://localhost:${MOCK_SERVER_PORT}
MOCK_SERVER_PORT=8090

PROJECT_PUBLIC_HOST=${MOCK_SERVER_HOST}

parsed by this script

expand(dotenv.config({ path: path.resolve(root, '.env') }))

console.log('env', process.env)

is not recursively expanded anymore. Now it produces the following result:

FIRST_PAGE_URL: '${MOCK_SERVER_HOST}/first-page',
...
MOCK_SERVER_HOST: 'http://localhost:8090',
MOCK_SERVER_PORT: '8090',

PROJECT_PUBLIC_HOST='http://localhost:8090'


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant