1.2 KiB
1.2 KiB
Tasks
1. Make object URLs origin-relative
- 1.1 In
backend/internal/storage/signer.go, return a path-only URL (/api/objects/<key>?e&s) and drop thebaseURLfield/parameter fromSigner/NewSigner; verify withgo test ./internal/storage/.... - 1.2 In
backend/internal/storage/storage.go, stop passingcfg.Server.BaseURLtoNewSigner; verify withgo build ./....
2. Remove the base-URL configuration
- 2.1 Remove
Server.BaseURLfrombackend/internal/config/config.goand delete theAPP_BASE_URLline from.env.exampleand the README table; verifygo build ./...and that noAPP_BASE_URL/Server.BaseURLreferences remain. - 2.2 Update every other
storage.NewSigner(...)call site (tests/helpers ininternal/storage,internal/photos,internal/app,internal/e2e) to drop the base argument; verify withmake test.
3. Integration verification
- 3.1 Run
make test(backend) andnpm run build(frontend); verify both pass and that an issued object URL has no scheme or host.
Workflow follow-up
- Run
/opsx-applyto implement this change. - Archive the change after review and verification (sync the delta spec into
storage-backends).