# Building website locally using Okteto CLI leads to Page Not Found in a preview Environment

**URL:** <https://community.okteto.com/t/building-website-locally-using-okteto-cli-leads-to-page-not-found-in-a-preview-environment/654>\
**Category:** Help\
**Created:** [February 27, 2023, 5:48pm UTC](https://community.okteto.com/t/building-website-locally-using-okteto-cli-leads-to-page-not-found-in-a-preview-environment/654 "2023-02-27T17:48:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NitishKumar06](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/nitishkumar06/32/302_2.png) [@NitishKumar06](https://community.okteto.com/u/NitishKumar06)\
**Post date:** [February 27, 2023, 5:48pm UTC](https://community.okteto.com/t/building-website-locally-using-okteto-cli-leads-to-page-not-found-in-a-preview-environment/654/1 "2023-02-27T17:48:45Z")

</div>

I’ve tried to build the website locally using Okteto a couple of times and it works really well. However, the issue is that, as soon as we go to the preview environment, the home page is shown as ‘Page Not Found’.

After a refresh, the home page is actually visible.

I’m not sure whether this issue needs to go in the `okteto/docs` or `okteto/okteto`. Hence I’m putting it first here to discuss about how to proceed further.

 ![Screenshot from 2023-02-27 19-50-34](https://us1.discourse-cdn.com/flex019/uploads/okteto/original/1X/672ea381a0e88fd3f21c64fcdcc20737c66ee7bb.png)

---

<div class="post-metadata">

**Author:** ![provecho](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/provecho/32/45_2.png) [@provecho](https://community.okteto.com/u/provecho)\
**Post date:** [February 28, 2023, 4:41pm UTC](https://community.okteto.com/t/building-website-locally-using-okteto-cli-leads-to-page-not-found-in-a-preview-environment/654/2 "2023-02-28T16:41:11Z")

</div>

Hi @NitishKumar06 ,

Thanks for contributing to okteto/docs. Try accessing `/docs` instead.

We use that prefix to combine the documentation portal with the main website.
