During the deployment of my application container, I need to substitute a JSON file with a new one.
Situation
I have developed a next.js application that relies on a particular JSON file for data. Everything works perfectly when the file is imported into the necessary classes.
However, after building the application, the JSON file seems to be integrated directly into the importing classes and no longer exists as a separate entity.
The application is dockerized and deployed using a helm chart. At this stage, I face an issue trying to replace the JSON file since it is not included in the build files.
Is there a way to configure nextjs so that the JSON file remains external, allowing me to swap it out during deployment without having to rebuild the entire container?