# How can I set custom error page url from tenan.yml?

**URL:** <https://community.auth0.com/t/how-can-i-set-custom-error-page-url-from-tenan-yml/167938>\
**Category:** Get Help\
**Tags:** tenants, management-api\
**Created:** [January 8, 2025, 5:52pm UTC](https://community.auth0.com/t/how-can-i-set-custom-error-page-url-from-tenan-yml/167938 "2025-01-08T17:52:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepakg](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/deepakg/32/62962_2.png) [@deepakg](https://community.auth0.com/u/deepakg)\
**Post date:** [January 8, 2025, 5:52pm UTC](https://community.auth0.com/t/how-can-i-set-custom-error-page-url-from-tenan-yml/167938/1 "2025-01-08T17:52:19Z")

</div>

After setting custom error page in tenant settings, I exported the tenant.yml using deploy cli.  
But I am unable to see how custom error page was set in tenant.yml

Command used to export is a0deploy export --config\_file=config.json --format=yaml --output\_folder=exportedConfig --debug

How can I set custom error page url from tenant.yml ?

---

<div class="post-metadata">

**Author:** ![marybeth.hunter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marybeth.hunter/32/61955_2.png) [@marybeth.hunter](https://community.auth0.com/u/marybeth.hunter)\
**Post date:** [January 8, 2025, 9:19pm UTC](https://community.auth0.com/t/how-can-i-set-custom-error-page-url-from-tenan-yml/167938/3 "2025-01-08T21:19:10Z")

</div>

Hi @deepakg,

Welcome to the Auth0 Community!

If you have a custom error page set in your tenant already, you can find it in the tenant.yaml file under `pages`. I put in `https://google.com` in the custom error page field on my tenant as an example and exported the tenant with the Deploy CLI. Screenshot:

![Screenshot 2025-01-08 at 3.16.32 PM](https://global.discourse-cdn.com/auth0/original/3X/f/f/ffa8034cef70e937c75544641b968abbe5ffaed4.png)

To set one, you can add the `name` and `url` to the `pages` resource in the tenant.yaml file as shown in the screenshot.

Let me know how this goes!

Thanks,

Mary Beth

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 22, 2025, 9:20pm UTC](https://community.auth0.com/t/how-can-i-set-custom-error-page-url-from-tenan-yml/167938/4 "2025-01-22T21:20:06Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
