# New page templates and a0deploy

**URL:** <https://community.auth0.com/t/new-page-templates-and-a0deploy/130434>\
**Category:** Get Help\
**Tags:** custom-domains-flows, branding\
**Created:** [March 25, 2024, 3:46pm UTC](https://community.auth0.com/t/new-page-templates-and-a0deploy/130434 "2024-03-25T15:46:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben.stjohnston](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ben.stjohnston/32/59984_2.png) [@ben.stjohnston](https://community.auth0.com/u/ben.stjohnston)\
**Post date:** [March 25, 2024, 3:46pm UTC](https://community.auth0.com/t/new-page-templates-and-a0deploy/130434/1 "2024-03-25T15:46:31Z")

</div>

We are using a0deploy (or the node lib to be precise) to export from one environment and import into another.

We have also started playing with the new page template editing using storybook.

Are these compatible? i.e. if we create new branding in storybook and deploy to dev, will an export from dev and import into staging copy the page templates?

I would just try it, but I am now getting an error exporting from dev, but the error doesnt make any sense because it says the token is invalid as I dont have access to get the rules even though we have never created any rules.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [March 25, 2024, 7:04pm UTC](https://community.auth0.com/t/new-page-templates-and-a0deploy/130434/3 "2024-03-25T19:04:10Z")

</div>

Hi @ben.stjohnston,

Welcome to the Auth0 Community!

> [@ben.stjohnston](#):
>
> Are these compatible? i.e. if we create new branding in storybook and deploy to dev, will an export from dev and import into staging copy the page templates?

Yes, that should work just fine. The changes you made to your branding page templates in storybook should appear in the `branding` section of your YAML file or directory folder after exporting your tenant using the Auth0 Deploy CLI.

Additionally, if you’re getting errors with exporting related to Rules, you can exclude them from the export by passing in `AUTH0_EXLUDED` in your `config.json` file. See [Configure the Deploy CLI](https://auth0.com/docs/deploy-monitor/deploy-cli-tool/configure-the-deploy-cli#auth0_excluded).

Let me know if you have any further questions.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![ben.stjohnston](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ben.stjohnston/32/59984_2.png) [@ben.stjohnston](https://community.auth0.com/u/ben.stjohnston)\
**Post date:** [March 27, 2024, 11:37am UTC](https://community.auth0.com/t/new-page-templates-and-a0deploy/130434/4 "2024-03-27T11:37:04Z")

</div>

Thanks Rueben,

Just one additional question…  
Why is the branding\_template path in the tenant.yaml file in windows path format when we export? ie .\branding\_templates\universal\_login.html

The actions are in unix path format e.g. ./actions/Confirm Email Is Verified/code.js

Thanks Ben

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 1, 2024, 9:48pm UTC](https://community.auth0.com/t/new-page-templates-and-a0deploy/130434/5 "2024-04-01T21:48:20Z")

</div>

Hi @ben.stjohnston,

Thanks for your reply.

I do not see the difference you mention when testing on my machine. Instead, when I inspect the branding section in my `tenant.yaml` file, I see a normal file structure. For example: `./pages/password_reset.html`.

Similar with the Actions section, I see the following file path structure:  
`./actions/Consolelog statement/code.js`

I was not able to reproduce your observations.

In this scenario, are you able to try importing the `tenant.yaml` settings to see if the file path format prevents the request from proceeding?

It may also be worth re-exporting your configuration to see if it changes the output file path format.

Thanks,  
Rueben

---

<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:** [April 15, 2024, 9:48pm UTC](https://community.auth0.com/t/new-page-templates-and-a0deploy/130434/6 "2024-04-15T21:48:38Z")

</div>

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