We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45cc64e commit 80d1884Copy full SHA for 80d1884
netlify.toml
@@ -1,5 +1,11 @@
1
[build]
2
base = "01-Login"
3
- command = "printf '{\"domain\":\"%s\", \"clientId\":\"%s\"}' \"${AUTH0_DOMAIN}\" \"${AUTH0_CLIENT_ID}\" > public/auth_config.json && cp index.html public"
+ command = """if [ -z "${AUTH0_DOMAIN}" ] || [ -z "${AUTH0_CLIENT_ID}" ]; then
4
+ echo "Error: One or both environment variables (AUTH0_DOMAIN, AUTH0_CLIENT_ID) are not set or are empty."
5
+ exit 1
6
+ fi
7
+ printf '{\"domain\":\"%s\", \"clientId\":\"%s\"}' "${AUTH0_DOMAIN}" "${AUTH0_CLIENT_ID}" > public/auth_config.json
8
+ cp index.html public
9
+ """
10
publish = "public"
11
0 commit comments