Environment and runtime configuration for the site pack
Inventory of every environment variable and runtime configuration constant referenced in pack app-campus.site.2, the safe production value for each one, and what the app does when a value is missing or unsafe. This page changes no server setting and adds no secret.
Inventory result
All 18 files in this pack were read: role-features, role-first-run, role-home-view, save-answer-bundle, search-indexing, search-scope, set-notification-preferences, set-retention-and-access, share-answer, spanish-help, stale-question-reminders, student-workflows, test-answers, unified-form-layout, verified-expert, weekly-quality-rate, work-unanswered, and workspace-member-audit. Server code, deploy files, and core platform files are not in this pack and are not changed by this guide.
| Item | Found in this pack | Safe production value | Behaviour when missing or unsafe |
|---|---|---|---|
| Server environment variables | None. No variable name, secret, password, token, API key, or connection string is referenced in any of the 18 files. | None required by this site slice. Do not add a variable, a secret, or a fallback value in this slice. | Not applicable in this slice. Configuration for the signed in app and the platform lives outside this pack and is not changed here. |
| Hard coded secrets or credentials | None. No credential value appears in any file. | No secret in code, markup, logs, or output. Secrets are read by reference outside this slice. | This guide adds no secret and names no secret value. |
A missing value in this slice therefore never means a missing server secret. The real fail fast work in this pack is client side, and it is documented below.
Runtime constants in this pack, with safe defaults
Each row states where the constant is referenced, its default in the pack, the safe production value, and the fail fast behaviour when it is missing or unsafe.
| Constant | Referenced in | Default in the pack | Safe production value and fail fast behaviour |
|---|---|---|---|
| CAMPUS_ANALYTICS_OPT_OUT, window global | weekly-quality-rate, quality and campaign tools | Not set. Recording is on unless an opt out signal is present. | Only the boolean true counts as opt out. When true, along with Global Privacy Control or Do Not Track set to 1, yes, 1, or true, recording, storage, and forwarding stop at once and the screen states that recording is off. This is fail closed and is the safe value. |
| Local storage key campus-answers:my-answers:v1 | save-answer-bundle and share-answer | No record until the reader saves an answer on that device. | Keep the key and version unchanged. When storage cannot be written, the page states that saving on this device is not available and does not claim the item was saved. A duplicate title, question, source link, workspace, and assistant updates the same item and makes no second copy. |
| Local storage key campus-answers:role-first-run:v1 | role-first-run | No progress until a college name is entered. Progress is kept per college name and per role. | Keep the key and version unchanged. A step cannot be checked before a college name is entered, and the page states that rule. Clearing browser data removes the saved progress. |
| Local storage key campus-answers:canonical-record:v1 | verified-expert, canonical eligibility tool | No saved record until the reader chooses Save record on this device. | Keep the key and version unchanged. When storage cannot be written, the page states that saving is not available and offers copy or download instead. The saved record stays on that device only. |
| Session storage key campus-answers:campaign:v1 | weekly-quality-rate, campaign attribution tool | No stored campaign set. The first allowlisted set in the page address is stored for the session only. | Session only, never local storage. When recording is off, nothing is stored or forwarded. A later page address value wins over a stored value, and an empty set never overwrites a stored set. |
| Campaign allowlist: utm_source, utm_medium, utm_campaign, utm_term, utm_content, utm_id | weekly-quality-rate, campaign attribution tool | No campaign value captured or forwarded. | Each value trimmed, at most 120 characters, letters, digits, dot, underscore, or hyphen only. Any other parameter name or invalid value is dropped, its name may be counted, and its value is never shown or stored. Forwarding is to same origin links to /request-demo and /app/ only. |
| Share and saved answer field limits | share-answer, save-answer-bundle, verified-expert | Title 200, question 2000, answer 4000, source title 200, source link 500, last checked date 80, workspace 120, assistant 120, collection 80, saved date 10 in YYYY-MM-DD form. | Keep the same limits on every page that uses the same field. A missing title blocks the share and moves focus to the title field. A source link that is not http or https is rejected. No field is silently truncated. |
| Timing and caps stated in the guides | search-scope, unified-form-layout, weekly-quality-rate, stale-question-reminders, work-unanswered | Search pause 120 milliseconds, controls at least 44 pixels high, duplicate click ignored within 800 milliseconds, quality events capped at 100 in memory, week starts Monday 00:00, at most 3 notifications per person per college workspace per college local day, no non essential send between 21:00 and 08:00 college local time. | Keep the same values across pages. A send past a cap or inside quiet hours queues for 08:00 the next college local day. A duplicate click does not create a second record. A zero denominator shows no measured outcomes in this range, not zero percent. |
Fail fast rules for this browser
Use these rules on every page that records an outcome, saves on a device, or forwards a link. A page that cannot meet a rule states the block and stops, instead of claiming success.
Opt out blocks recording before any other step
Check CAMPUS_ANALYTICS_OPT_OUT, Global Privacy Control, and Do Not Track first. When any one is on, record nothing, store nothing, and forward nothing, and state that recording is off in this browser.
Storage failure blocks any saved claim
Test storage before a save. When a write fails, state that saving on this device is not available in this browser, offer copy or download, and do not show a saved message.
Invalid input blocks the action and moves focus
A missing required title, an invalid source link, or an invalid campaign value stops the action, states the field that needs attention, and moves focus to that field. The invalid value is not stored.
Unsafe link values are dropped, not repaired
A campaign value outside the allowlist or outside the character and length rule is dropped. A share link that cannot be read states that the link could not be read and asks the sender to copy it again.
Zero and empty states state the count
An empty list states 0 shown and the total, keeps the heading and filters visible, and offers one clear action. A rate with a zero denominator states no measured outcomes in this range.
Check the configuration of this browser
Choose Run configuration check. Nothing entered or read here is sent to a server. The check reads no question text, no answer text, no search words, and no saved item content. Stored keys are reported as present or not present only, and their values are not shown.
No check run yet on this page.
The configuration summary holds counts and states only. It holds no personal data, no question text, and no search words.
Checks before you change a configuration value
Run each check before you publish a change to a constant in this pack.
- The value is the same on every page that uses the same field, key, or cap, or the change states where it differs
- An opt out signal still blocks recording, storage, and forwarding on every page, with the block stated on screen
- A storage failure still states that saving is not available and still offers copy or download
- An invalid campaign value and an invalid source link are still dropped or rejected, not stored
- No new environment variable, secret, token, or default credential is added in this site slice
Follow Weekly quality rate for the quality and campaign tools, Search scope for search rules, and Set retention and access for who may view full questions and who may export.
Next guide
Keep empty states consistent wherever a list can be empty.