@hrishikesh is correct. refreshContent is for astro dev only. It does not work in production. As it says it in the comment in the linked code: this is the Vite dev server.
@hrishikesh is correct. refreshContent is for astro dev only. It does not work in production. As it says it in the comment in the linked code: this is the Vite dev server.