How to get the current version and date in a worker

For Workes & Pages, what is the name of the domain?

example.com

What is the issue or error you’re encountering

How to get the current version and date in a worker

How to get the current version and date in a worker?

As we all know, every time the code is deployed to the worker, a deployment hash and deployment time will be generated. I need to obtain this external information in the worker. How can I obtain it?

:joy: I have found a solution. If others also need to obtain this data, I hope this topic can help you.