Merge pull request #1273 from wejendorp/deploy-fix

Dynamically determine the chunk to inject during runtime
This commit is contained in:
Patrik Oldsberg
2020-06-12 19:55:26 +02:00
committed by GitHub
+1 -1
View File
@@ -22,7 +22,7 @@ function inject_config() {
>&2 echo "Runtime app config: $config"
local main_js
main_js="$(ls /usr/share/nginx/html/main.*.chunk.js)"
main_js="$(grep -l __APP_INJECTED_RUNTIME_CONFIG__ /usr/share/nginx/html/*.chunk.js)"
echo "Writing runtime config to ${main_js}"
# escape ' and " twice, for both sed and json