[feature] Health check

This commit is contained in:
PauI Ostrovckij
2025-10-02 17:39:15 +03:00
parent 6421d159b4
commit 19b5be98c2
9 changed files with 222 additions and 7 deletions

View File

@ -33,7 +33,16 @@ module.exports = (env, argv) => {
},
port: 3000,
open: true,
historyApiFallback: true
historyApiFallback: true,
proxy: {
'/healthcheck-api': {
target: process.env.REACT_APP_DOCSERVICE_URL,
changeOrigin: true,
pathRewrite: {
'^/healthcheck-api': '/healthcheck'
}
}
}
},
plugins: [
@ -55,7 +64,8 @@ module.exports = (env, argv) => {
]
}),
new webpack.DefinePlugin({
'process.env.REACT_APP_BACKEND_URL': JSON.stringify(process.env.REACT_APP_BACKEND_URL)
'process.env.REACT_APP_BACKEND_URL': JSON.stringify(process.env.REACT_APP_BACKEND_URL),
'process.env.REACT_APP_DOCSERVICE_URL': JSON.stringify(process.env.REACT_APP_DOCSERVICE_URL)
})
],