I am working on a Vue 2 project and facing an issue with loading configuration settings from a config.json file.
My router\index.ts file has the line: Vue.prototype.$config = require('/public/config.json')
The config.json file contains important settings needed for initializing Okta.
On my local machine, the public folder is at the same level as src and everything works fine.
However, when the build server creates a build and deploys it to the server, the app fails to load the values from config.json.
Even after trying moving the file to different locations like a public folder off the root or a js\public folder, the issue persists.
It seems that the compiled code is looking in the wrong directory for the config.json file.
I suspect there may be a version of config.js included in the compiled code causing conflicts.
Do I need to modify the build process to resolve this issue?