mirror of
https://github.com/OpenBankProject/API-Explorer-II.git
synced 2026-02-06 18:56:58 +00:00
commenting prestart.go
This commit is contained in:
parent
46049874d7
commit
13ec4b1453
@ -10,9 +10,16 @@ import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// As the frontend environment is read at build time, we need to reprocess the values
|
||||
// at container runtime.
|
||||
// This app will search and replace the values set at build time from this build environment: Dockerfiles/frontend_build.env
|
||||
// with values taken from the container environment.
|
||||
|
||||
func main() {
|
||||
// Define the host env variables to be replaced at build time
|
||||
// Define the build env variables to be replaced at container run time
|
||||
// url config variables are expected to be a valid URL in the container environment
|
||||
url_config := []string{"VITE_OBP_API_HOST", "VITE_OBP_API_MANAGER_HOST", "VITE_OBP_API_PORTAL_HOST", "VITE_OBP_LOGO_URL"}
|
||||
// DANGERZONE: The following strings will be replaced by container environment variables without any checking of whatever!!!
|
||||
config := []string{"VITE_OBP_API_VERSION", "VITE_OBP_LINKS_COLOR", "VITE_OBP_HEADER_LINKS_COLOR", "VITE_OBP_HEADER_LINKS_HOVER_COLOR", "VITE_OBP_HEADER_LINKS_BACKGROUND_COLOR", "VITE_OBP_API_DEFAULT_RESOURCE_DOC_VERSION", "VITE_CHATBOT_ENABLED", "VITE_CHATBOT_URL"}
|
||||
configMap := make(map[string]string)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user