This project is a static site that demonstates using PageCrypt to password protect the site.
An example deployment of this repository is at https://pagecrypt.onrender.com. Use the password s3cr3t
to view it.
See the blog post that uses this repository or follow the steps below:
- Create a new repository from this template repository.
- Create a new static site on Render from that repository using the following values:
- Build Command:
yarn && yarn run build
- Publish directory:
dist
- Advanced ➡️ Add Environment Variable ➡️ Create an environment variable named
PASSWORD
. Its value will be used to encrypt your site and used by visitors to decrypt and view the site.
That's it! Your static site will be live on your Render URL as soon as the build finishes.