Skip to content

How to add Basic Authentication to a Vercel (ex-ZEIT Now) deployment using various languages / frameworks

License

Notifications You must be signed in to change notification settings

valartech/now-basic-auth

 
 

Repository files navigation

Goal

This repo contains examples of how to add Basic Authentication to a Now deployment using various languages / frameworks, along with some numbers that show the differences between each method.

Each example contains its own README file with some additional information.

Structure

  • The _static directory contains the source code for the "website" that each implementation serves for demonstration purposes : HTML, CSS, images ... 1
  • All the other directories are the different ways you can add Basic Authentication to a Now deployment. Checkout their code to see how to implement it in your project

1 The demo website has a public area and a restricted /admin area (username / pass : admin / admin).

Comparison

Example 📦 Lambda size 🔗 Deployment URL
node 0.07 MB Link
node-express 0.35 MB Link
node-static-auth 0.07 MB Link

Contributing

Issues and PR are welcome!

  • 🔀 Fork and clone the project
  • 🆕 Create a directory named after the language / framework you want to add (for example php or node-polka)
  • 👨‍💻 Add the implementation
  • 🎉 Submit your PR

About

How to add Basic Authentication to a Vercel (ex-ZEIT Now) deployment using various languages / frameworks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 43.1%
  • HTML 34.8%
  • JavaScript 14.4%
  • CSS 6.2%
  • Shell 1.5%