Replace HTTP Basic Auth with a branded /login flow and signed session cookie, using Next.js 16's proxy convention for route protection. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
689 B
Bash
19 lines
689 B
Bash
# Since the ".env" file is gitignored, you can use the ".env.example" file to
|
|
# build a new ".env" file when you clone the repo. Keep this file up-to-date
|
|
# when you add new variables to `.env`.
|
|
|
|
# This file will be committed to version control, so make sure not to have any
|
|
# secrets in it. If you are cloning this repo, create a copy of this file named
|
|
# ".env" and populate it with your secrets.
|
|
|
|
# When adding additional environment variables, the schema in "/src/env.js"
|
|
# should be updated accordingly.
|
|
|
|
# Example:
|
|
# SERVERVAR="foo"
|
|
# NEXT_PUBLIC_CLIENTVAR="bar"
|
|
|
|
# Password required to view the site (login page at /login).
|
|
# Leave empty/unset to disable the gate.
|
|
SITE_PASSWORD=""
|