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

Multi-line environment variable not working #50409

Closed
1 task done
reza-ebrahimi opened this issue May 26, 2023 · 4 comments
Closed
1 task done

Multi-line environment variable not working #50409

reza-ebrahimi opened this issue May 26, 2023 · 4 comments
Labels
bug Issue was opened via the bug report template.

Comments

@reza-ebrahimi
Copy link

reza-ebrahimi commented May 26, 2023

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #79~20.04.1-Ubuntu SMP Thu Apr 20 22:12:07 UTC 2023
Binaries:
  Node: 20.2.0
  npm: 9.6.6
  Yarn: 1.22.19
  pnpm: N/A
Relevant packages:
  next: 13.4.4
  eslint-config-next: 13.4.4
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 4.9.5

Which area(s) of Next.js are affected? (leave empty if unsure)

No response

Link to the code that reproduces this issue or a replay of the bug

https://codesandbox.io/p/sandbox/adoring-fog-4nkuzo

To Reproduce

Describe the Bug

The output of console.log(process.env.GITHUB_PRIVATE_KEY) is "-----BEGIN PRIVATE KEY-----.
If you look at the .env file, only the first line of environment variable is printed into console.

console.log(process.env.GITHUB_PRIVATE_KEY);
// output: "-----BEGIN PRIVATE KEY-----

Note: The private key is invalidated.

Expected Behavior

Printing all lines as it is.

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

@joshtinhan
Copy link

joshtinhan commented May 28, 2023

@reza-ebrahimi this issue will be fixed if PR #38481 got merged.

@balazsorban44
Copy link
Member

Correct. We cannot merge it currently, as it would be a breaking change. But you can follow the above-mentioned PR for a resolution.

@reza-ebrahimi
Copy link
Author

@balazsorban44 As you said that PR is still not merged, so why this issue is marked as completed then closed?

@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

3 participants