R
R
Rooly2022-02-28 07:36:31
JavaScript
Rooly, 2022-02-28 07:36:31

How to change version from package.json in client?

I want to dynamically change the "version" parameter in package.json from the client side.
1. I get version 1.0.1 (server_version) from the server
2. I compare what is in process.env.version === server_version
3. If so, I change process.env.version = server_version.

However, I just can't do it from the client side.

All this is needed to ask the user for an update, that is, when a new version is released, then ask, and then do $router.go()

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question