I have followed the below mention things:
###############################
IN local.cfg file
after edit this file restart the tomcat server
###############################
###############################
###############################
IN config.prod.yml
after edit
the below lines and then run again the build command
yarn run build:prod
###############################
ui:
ssl: false
host: 0.0.0.0
port: 4000
.......
# The REST API server settings
# NOTE: these settings define which (publicly available) REST API to use. They are usually
# 'synced' with the 'dspace.server.url' setting in your backend's local.cfg.
rest:
ssl: false
host: IP
port: 8080
# NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript
nameSpace: /server
###############################
###############################
dspace-ui.json
after edit the below lines then run
pm2 start dspace-ui.json
###############################
"DSPACE_REST_HOST": "IP",
"DSPACE_REST_PORT": "8080",
"DSPACE_REST_NAMESPACE": "/server"
###############################