Skip to content

Commit ec03505

Browse files
Sync public snapshot from freebuff-private
Source: CodebuffAI/freebuff-private@c477fa41cd716314429ebd515f818bc727c86d41
1 parent 46a0a1f commit ec03505

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

bun.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/src/constants/freebuff-placements.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,14 @@ import type { AdCampaignStatus } from './freebuff-ads'
2222
* spend ledger. While this is `false` the console renders from fixtures and
2323
* must never be shown to an advertiser as their real numbers.
2424
*
25-
* Flip to `true` only once campaign attribution and the spend ledger exist.
25+
* **This constant no longer decides who can reach the console.** That is the
26+
* `FREEBUFF_PLACEMENTS_AUDIENCE` env knob (`off` | `admin` | `all`, default
27+
* `off`), read by `placementsAudience()` in
28+
* `freebuff/web/src/server/advertisers/placements/access.ts`. What survives
29+
* here is the statement of FACT the knob is set against: the data behind these
30+
* screens is invented. It stays `false`, and stays exported, because the
31+
* fixture-vs-real distinction is what the UI cites — flip it only once
32+
* campaign attribution and the spend ledger actually exist.
2633
*/
2734
export const PLACEMENTS_CONSOLE_ENABLED = false
2835

0 commit comments

Comments
 (0)