mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 06:43:06 +00:00
- payload.config.ts: vercelBlobStorage -> s3Storage (@payloadcms/storage-s3) com endpoint Garage (forcePathStyle, region garage); bucket privado — o staticHandler do plugin streama os objetos em /api/media/file/<filename>, mantendo o contrato de URL relativa das 40 rows pré-existentes - src/utilities/mediaStorage.ts: resolveS3StorageEnv fail-closed (S3_* parcial -> throw no boot com a lista exata; nenhuma -> storage local dev/test) - seed-posts: remove pre-delete do @vercel/blob (S3 sobrescreve nativamente) - worktree-env.mjs: s3EnvCopiedLines all-or-nothing (unit-testada) - envs S3_BUCKET/S3_ENDPOINT/S3_REGION/S3_ACCESS_KEY_ID/S3_SECRET_ACCESS_KEY no .env.example/.env.test; cloud-setup.sh sem o sed morto do blob - deps: -storage-vercel-blob -@vercel/blob +storage-s3; importMap regenerado - docs: impl plan (revisão A->B: Garage v2 sem acesso anônimo na API S3), AGENTS.md, changelog 2026-08-18-ops52
15 lines
896 B
Text
15 lines
896 B
Text
# Environment for the automated test suite (vitest + playwright).
|
|
#
|
|
# This file is committed ON PURPOSE: it contains no secrets, only local values.
|
|
# The test suite deletes and recreates records, so it MUST use an isolated,
|
|
# throwaway database. Tests load THIS file (not .env / .env.local) and refuse to
|
|
# run unless the database name ends with "_test" (see assertTestDatabase.ts).
|
|
#
|
|
# Requires the local Postgres from docker-compose (`pnpm db:start`), which
|
|
# auto-creates the teqo_test database on first run.
|
|
# Optional when Docker Postgres is not on localhost:5432 (e.g. port mapped to 5433):
|
|
# TEQO_TEST_DATABASE_URL=postgresql://teqo:teqo@127.0.0.1:5433/teqo_test
|
|
DATABASE_URL=postgresql://teqo:teqo@localhost:5432/teqo_test
|
|
PAYLOAD_SECRET=test-only-secret-not-used-in-production
|
|
# No S3_* set → media storage falls back to local disk in tests.
|
|
NEXT_PUBLIC_SITE_URL=http://localhost:3000
|