How can I password protect a specific route on my website? example: mydomain.com/admin
How can I password protect a specific route on my website?
example: mydomain.com/admin
example: mydomain.com/admin
npm create cloudflare@latest to create a new Next.js project. getRequestContext().env.DB... and to use getRequestContext I need the runtime to be edge. As soon as I add that runtime constant, all hell breaks loose and it complains about node:crypto etc whenever I do a build. What am I doing that's really dumb?oslo/password and trying to use Scrypt from it, and Lucia has its own one that is pure JS 


_astro/image.somerandomID123.webp straight away and uses this insteadModule build failed: UnhandledSchemeError: Reading from "node:crypto" is not handled by plugins (Unhandled scheme).
Import trace for requested module:
▲ node:crypto
▲ ./node_modules/oslo/dist/password/scrypt.js
▲ ./node_modules/oslo/dist/password/index.js
▲ ./src/app/sign-up/page.tsx
▲
▲ ./src/app/sign-up/page.tsx + 30 modules
▲ Unexpected character '@' (1:37)
▲ | const __WEBPACK_NAMESPACE_OBJECT__ = @node-rs/argon2;
▲ while analyzing module external assign "@node-rs/argon2" for concatenation
▲
▲ > Build failed because of webpack errors_astro/image.somerandomID123.webp