added basic auth

This commit is contained in:
2025-08-17 14:13:58 +01:00
parent 1bf8e1a055
commit 4cafa1fb0b
3 changed files with 68 additions and 1 deletions

View File

@@ -1,3 +1,12 @@
# Get a free API key at https://dev.pokemontcg.io/
# Then copy this file to .env.local and paste your key below
# Then copy this file to .env.local and paste your key(s) below
# Client-side API key (exposed to browser)
NEXT_PUBLIC_POKEMON_TCG_API_KEY=
# Optional: Server-side API key (preferred). If set, server uses this and does not rely on public key.
POKEMON_TCG_API_KEY=
# Optional: Enable very simple single-user Basic Auth (set both to enable)
BASIC_AUTH_USER=
BASIC_AUTH_PASS=