Skip to content

Commit 3aa7126

Browse files
committed
added netlify.toml file
added netlify.toml file
1 parent 70a42fb commit 3aa7126

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Diff for: README.md

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

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

36+
## Deploy to Netlify
37+
You can deploy this example as a site on your own to explore and experiment with, by clicking this button.
38+
After deploy, install Auth0 by Okta extension in Netlify and follow the steps to create an App.
39+
40+
<a href="https://app.netlify.com/start/deploy?repository=https://github.com/auth0-samples/auth0-vue-samples"><img src="https://www.netlify.com/img/deploy/button.svg" alt="Deploy to Netlify" height=30px></a>
41+
3642
## License
3743

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

Diff for: netlify.toml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[build]
2+
base = "01-Login"
3+
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}" > auth_config.json
8+
cat auth_config.json
9+
npm install
10+
npm run build
11+
"""
12+
publish = "dist"

0 commit comments

Comments
 (0)