Skip to content

added netlify.toml #523

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ If you have found a bug or if you have a feature request, please report them at

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

## Deploy to Netlify
You can deploy this example as a site on your own to explore and experiment with, by clicking this button.
After deploy, install Auth0 by Okta extension in Netlify and follow the steps to create an App.

<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>

## License

This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.
11 changes: 11 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[build]
base = "Sample-01"
command = """if [ -z "${AUTH0_DOMAIN}" ] || [ -z "${AUTH0_CLIENT_ID}" ] || [ -z "${AUTH0_AUDIENCE}" ]; then
echo "Error: One or more environment variables (AUTH0_DOMAIN, AUTH0_CLIENT_ID, AUTH0_AUDIENCE) are not set or are empty."
exit 1
fi
printf '{\"domain\":\"%s\", \"clientId\":\"%s\", \"apiUri\":\"%s\", \"authorizationParams\":{\"audience\":\"%s\"}}' "${AUTH0_DOMAIN}" "${AUTH0_CLIENT_ID}" "${URL}" "${AUTH0_AUDIENCE}"> auth_config.json
npm install
npm run build
"""
publish = "dist/login-demo"
Loading