Register Fastify multipart support, validate JPEG/PNG/WebP binary signatures, store upload bytes through ImageStorage, persist metadata after storage succeeds, clean up bytes on metadata failure, and document the upload boundary. Verification: npm test passed 68 tests and integration passed 14 tests. No build script is configured.
18 lines
596 B
Bash
18 lines
596 B
Bash
API_PORT=3000
|
|
IMAGE_STORAGE_ROOT=.local/image-storage
|
|
DATABASE_URL=postgresql://pokemon_inventory:change-me@localhost:5433/pokemon_inventory
|
|
INITIAL_ADMIN_EMAIL=
|
|
INITIAL_ADMIN_PASSWORD=
|
|
INITIAL_SELLER_NAME=
|
|
MFA_ENCRYPTION_KEY=
|
|
PASSWORD_RESET_URL=http://localhost:5173/reset-password
|
|
SMTP_FROM=
|
|
SMTP_URL=
|
|
POSTGRES_DB=pokemon_inventory
|
|
POSTGRES_PASSWORD=change-me
|
|
POSTGRES_PORT=5433
|
|
POSTGRES_USER=pokemon_inventory
|
|
REDIS_PORT=6380
|
|
REDIS_URL=redis://localhost:6380
|
|
TEST_REDIS_URL=redis://localhost:6380
|
|
TEST_DATABASE_URL=postgresql://pokemon_inventory:change-me@localhost:5433/pokemon_inventory_test |