Version number shouldn't be in .env #555

Closed
opened 2026-02-04 20:20:24 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @emmguyot-adscom on GitHub (Aug 13, 2024).

Is this a feature for the backend or frontend?

Frontend

What would you like?

The version number should be somewhere else. I propose one of the following:

  • In a file in client/src/constants, e.g Version.js > This one is the closest to current use.
  • Declare the version in package.json and use it with genversion > This one is the cleanest IMHO

Why is this needed?

The version number is presently in the client/.env file which needs to be merged on each upgrade of Planka. It's painful

Other information

No response

Originally created by @emmguyot-adscom on GitHub (Aug 13, 2024). ### Is this a feature for the backend or frontend? Frontend ### What would you like? The version number should be somewhere else. I propose one of the following: * In a file in client/src/constants, e.g Version.js > This one is the closest to current use. * Declare the version in package.json and use it with [genversion](https://www.npmjs.com/package/genversion) > This one is the cleanest IMHO ### Why is this needed? The version number is presently in the client/.env file which needs to be merged on each upgrade of Planka. It's painful ### Other information _No response_
Author
Owner

@meltyshev commented on GitHub (Aug 13, 2024):

Hi! Sure, let's change that. I think the easiest way would be to define a version in package.json and retrieve it from there. Let me test first to make sure nothing breaks, and then I'll push the changes.

UPD: I like the option with genversion, I'll try to put it in the root directory.

@meltyshev commented on GitHub (Aug 13, 2024): Hi! Sure, let's change that. I think the easiest way would be to define a version in package.json and retrieve it from there. Let me test first to make sure nothing breaks, and then I'll push the changes. UPD: I like the option with genversion, I'll try to put it in the root directory.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#555