You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Brief Description of the Bug
When setting NEXT_PRIVATE_DEBUG_CACHE= as an empty value in the .env.local file, an error occurs. This issue arises despite the environment variable being defined.
Severity
Minor
Frequency of Occurrence
Always
Steps to Reproduce
Provide detailed steps to reproduce the behavior, including any specific conditions or configurations where the bug occurs:
Add NEXT_PRIVATE_DEBUG_CACHE= to the .env.local file without assigning any value.
Start the Next.js server.
Observe the error that appears on the console or during the application startup.
Expected vs. Actual Behavior Expected: The Next.js application should start normally, recognizing the environment variable even if it’s left empty. Actual: An error occurs, preventing the application from starting or causing unexpected behavior due to the empty environment variable.
Screenshots/Logs
Environment:
OS: MacOS
Node.js version: 20.12.2
@neshca/cache-handler version: 1.8.1
next version: 15.0.2
Dependencies and Versions
Attempted Solutions or Workarounds
To make it work, the NEXT_PRIVATE_DEBUG_CACHE variable needs to be removed entirely.
It seems that the issue lies with the code typeof process.env.NEXT_PRIVATE_DEBUG_CACHE !== 'undefined'.
When NEXT_PRIVATE_DEBUG_CACHE= is declared with an empty value, it is recognized as an empty string "" instead of undefined, so this code needs to be adjusted accordingly.
Impact of the Bug
I'm having issues managing the variables used in the .env file.
Additional context
The text was updated successfully, but these errors were encountered:
Brief Description of the Bug
When setting NEXT_PRIVATE_DEBUG_CACHE= as an empty value in the .env.local file, an error occurs. This issue arises despite the environment variable being defined.
Severity
Minor
Frequency of Occurrence
Always
Steps to Reproduce
Provide detailed steps to reproduce the behavior, including any specific conditions or configurations where the bug occurs:
Expected vs. Actual Behavior
Expected: The Next.js application should start normally, recognizing the environment variable even if it’s left empty.
Actual: An error occurs, preventing the application from starting or causing unexpected behavior due to the empty environment variable.
Screenshots/Logs
Environment:
@neshca/cache-handler
version: 1.8.1next
version: 15.0.2Dependencies and Versions
Attempted Solutions or Workarounds
To make it work, the NEXT_PRIVATE_DEBUG_CACHE variable needs to be removed entirely.
It seems that the issue lies with the code typeof process.env.NEXT_PRIVATE_DEBUG_CACHE !== 'undefined'.
When NEXT_PRIVATE_DEBUG_CACHE= is declared with an empty value, it is recognized as an empty string "" instead of undefined, so this code needs to be adjusted accordingly.
Impact of the Bug
I'm having issues managing the variables used in the .env file.
Additional context
The text was updated successfully, but these errors were encountered: