Skip to content

Commit 1b0efe8

Browse files
committed
added netlify.toml
1 parent e292e4e commit 1b0efe8

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ If you have found a bug or if you have a feature request, please report them at
5454

5555
[Auth0](https://auth0.com)
5656

57+
## Deploy to Netlify
58+
You can deploy this example as a site on your own to explore and experiment with, by clicking this button.
59+
After deploy, install Auth0 by Okta extension in Netlify and follow the steps to create an App.
60+
61+
<a href="https://app.netlify.com/start/deploy?repository=https://github.com/auth0-samples/auth0-angular-samples"><img src="https://www.netlify.com/img/deploy/button.svg" alt="Deploy to Netlify" height=30px></a>
62+
5763
## License
5864

5965
This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.

netlify.toml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[build]
2+
base = "Sample-01"
3+
command = """if [ -z "${AUTH0_DOMAIN}" ] || [ -z "${AUTH0_CLIENT_ID}" ] || [ -z "${AUTH0_AUDIENCE}" ]; then
4+
echo "Error: One or more environment variables (AUTH0_DOMAIN, AUTH0_CLIENT_ID, AUTH0_AUDIENCE) are not set or are empty."
5+
exit 1
6+
fi
7+
printf '{\"domain\":\"%s\", \"clientId\":\"%s\", \"apiUri\":\"%s\", \"authorizationParams\":{\"audience\":\"%s\"}}' "${AUTH0_DOMAIN}" "${AUTH0_CLIENT_ID}" "${URL}" "${AUTH0_AUDIENCE}"> auth_config.json
8+
npm install
9+
npm run build
10+
"""
11+
publish = "dist/login-demo"

0 commit comments

Comments
 (0)