# Viewing restricted access pages without authentication in preview

**URL:** <https://community.weweb.io/t/viewing-restricted-access-pages-without-authentication-in-preview/824>\
**Category:** Ask us anything\
**Tags:** authentication, xano\
**Created:** [July 19, 2022, 11:26am UTC](https://community.weweb.io/t/viewing-restricted-access-pages-without-authentication-in-preview/824 "2022-07-19T11:26:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![kevinwasie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/kevinwasie/32/402_2.png) [@kevinwasie](https://community.weweb.io/u/kevinwasie)\
**Post date:** [July 20, 2022, 2:59pm UTC](https://community.weweb.io/t/viewing-restricted-access-pages-without-authentication-in-preview/824/5 "2022-07-20T14:59:26Z")

</div>

@TrendiMike That is a question that I also am looking to solve right now.

Two things:

1. WeWeb now shows a variable for whether or not the site is in edit or production mode. This is one way to set up your dev ops.

 ![Screen Shot 2022-07-20 at 10.55.57 AM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/1X/e7abdd93620e717e56e1debb9d000322be60d719.png)

1. Take a look at this post below:

> [@Testing environment and production](https://community.weweb.io/t/testing-environment-and-production/429):
>
> Hello, I am getting ready to publish our site soon. I need to think through how to set up a testing environment. What is the best practice for this on the WeWeb side? I’ve thought about creating a variable called “is\_test\_enviornment”. Then, inside all of our API endpoints for CRUD, set them if/then based on that variable. I could then work on the site with the is\_test\_enviornment set to true, then change it to false, then publish. Any thoughts/best practices here? Thank you.

I haven’t made it this far in my development yet as I’m getting ready to launch my project… but I’ve thought about setting up a second project, using that to test, and then possibly copying the project and publishing once work is done on it. I do have some concerns about it, but I think it can be solved with a little bit of work, and over time I think WeWeb will to develop an out of the box solution for this.

---

_[View the full topic](https://community.weweb.io/t/viewing-restricted-access-pages-without-authentication-in-preview/824)._
