Thanks for sharing these details but it’s really hard to debug the issue without looking at the actual code. Can you please share your public repo or a minimal reproducible example. That will let us all work together from the same code to figure out what’s going wrong.
Thanks for your reply.
I could debug the issue… the way I ran the hardcoded function, it ran only the 1st time when deployed… after that it serves the cached web page and hence doesn’t actually load the page again on the server.
This had me believing the deployment does not write… whereas it just didnt run the function the way i was expecting.