flawyte / static-auth Goto Github PK
View Code? Open in Web Editor NEWThe most simple way to add Basic Authentication to a static website hosted on Vercel.
License: MIT License
The most simple way to add Basic Authentication to a static website hosted on Vercel.
License: MIT License
Hi, thanks for this lib.
I tried implementing it at https://github.com/UnlyEd/next-right-now/pull/222/files but it doesn't seem to work.
Also, I don't understand how this is supposed to work. What uses the index.tsx
file? I can't make sense of what happens in the background. ๐ค
Is it compatible with ES7/TS or should it be written the same way as you code examples? (using require
etc.)
Will it work locally? I guess not since Vercel isn't simulated locally.
Hi @flawyte!
Would you be willing to accept a PR that adds the ability to whitelist IP addresses from basic auth? We use basic auth on development/staging servers quite often and use IP whitelists to grant access to anyone working from our office.
A while ago I wrote a blogpost about how one could approach that with a custom hooks in Next.js servers. I assume it's would be trivial for me to add it to this package.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.