Config matrix: required or optional with safe defaults
Use this matrix before the first run. Each row classifies one setting found in the site pack as required or optional, states the production safe default already stated in the pack, and states what happens if the setting is missing or wrong. Where the pack states no value, the row states verify before deploy and adds no value.
How to read the matrix
Required means the item must be present or confirmed before the first booking or dispatch step that uses it. Optional means the shipped default can stay. Verify before deploy means no name or value is stated in the public site files in this pack, so the deployment owner confirms the name in locked Worker configuration and no value is copied into code, pages, logs, or a summary.
DB binding: required
Kind: D1 database binding named DB in the kit description. Safe default: no default. Bind the workspace database. If missing or wrong: the app interface fails in plain words. That failure is loud, not silent.
FILES binding: required when file or photo use is enabled
Kind: R2 bucket binding named FILES in the kit description. Safe default: no default. Bind the workspace bucket. Optional only for a build with no file use. If missing or wrong: uploads and daily check photos fail.
Runtime env, vault and media helpers: verify before deploy
Kind: Worker runtime object passed to assist, startMedia, useSecret and saveFile. Safe default: no default stated in the pack. Vault and media helpers are optional per feature and are read by reference only. If missing or wrong: the affected feature fails closed. Never fall back to a hard coded value.
App settings, registries and migrations: required
Kind: src/app.json for name, colours, roles, permissions and navigation, generated registries src/app/routes.ts and public/app/views/index.js, and migrations/0002_app.sql for app tables. Safe default: keep the shipped roles and permissions, keep generated registries generated, and ship the migration only. If missing or wrong: a module is unreachable or visible to the wrong role, or tables are missing.
Rates and scheduling settings: required to confirm at setup
Kind: workspace settings, not environment variables. Safe defaults already stated in the setup guide: hourly 125, MCI flat 175, point to point minimum 150, events 140, gratuity 20 percent, lead 3 hours, minimum gap 45 minutes. A changed rate applies to new quotes only. If missing or wrong: quote math diverges from the settings screen if the values are duplicated elsewhere.
Company profile and timezone: required to confirm at setup step 2
Kind: workspace settings for company name, public name, phone, service area and timezone. Safe default: public name shown on the public booking page, timezone saved once and used for pickup date, call time and reports. No timezone value is stated in the pack. If missing or wrong: pickup date or call time is wrong with no error.
Pickup points, templates, check lists and service schedule: required as seeded data
Kind: seeded workspace data. Safe defaults: ten pickup points listed in the setup guide, MCI arrivals use baggage claim meet with a name sign, four message templates, daily clean and inspect lists, and the 14 item livery schedule. Confirm in setup. If missing or wrong: the first run uses defaults until the lists are confirmed.
Public form route and site paths: required for forms, optional for presentation
Kind: site runtime route /api/public/request used by forms with data-request demo, question or pilot, plus /theme.css, /site.css, /site.js, /manifest.webmanifest, /icons/icon.svg and theme colour #14213D. Safe default: keep the shipped route and files. If the route is missing: the form shows a plain error and does not submit. Presentation files have no operational effect.
Timeouts, limits and feature flags compared with safe production values
This section compares hard coded defaults found in site code with the shipped values. The safe production value is the shipped value. Do not relax a limit to clear a warning.
Form timeout: required as shipped
Kind: timeout in public/site.js. Shipped value: 15000 milliseconds for a public form request. Safe production value: keep 15000 milliseconds. The form states the timeout in plain words, keeps the entered details on the form, and re-enables the send button. If the timeout is removed or made much longer: a slow connection leaves the person waiting with no next step.
Form field limits: required as shipped
Kind: limits in public/site.js. Shipped values: name 120, org or company 120, email 254, phone 30, fleet size 50, service area 200, message 2000, subject 200, website 200, and 500 for any other field name. Safe production value: keep the shipped limits. If a value is over the limit: the form names the field, keeps the other entries, and asks for a shorter entry.
Passenger booking limits: required as shipped
Kind: validation on the public booking form. Shipped values: estimated hours 0.25 to 24 in quarter hour steps, passengers 1 to 7, pickup and drop off 200 characters, passenger name 120 characters, phone 30 characters, requests 1000 characters, flight number 20 characters. Safe production value: keep the shipped limits. If a value is outside the limit: the form names the field and keeps the other entries.
Feature flags: none stated in the pack
Kind: feature flags and presentation defaults. Safe default: no feature flag name is stated in the public site files in this pack, so no flag is added here. Presentation defaults that are stated: theme colour #14213D, service worker registration after load and idle with a 3000 millisecond idle timeout, and structured data for organisation and services only. Safe production value: keep the shipped presentation defaults. If a flag name is needed: verify before deploy in locked configuration and add no guessed name.
Caching: required rule, optional assets
Kind: browser and edge caching. Safe default already stated in the standing rules: long lived caching is safe only for content hashed files under /assets/. Files whose names do not change between versions must not get long lived caching. If the rule is wrong: stale files stay in visitor browsers after a change.
App fallback: required
Kind: hosting configuration outside the site pack. Safe default already stated in the standing rules: custom 404 to index.html for /app/. URL Rewrite is not installed, so rewrite rules must not replace it. If missing or wrong: refresh on an app route returns 404.
- Required items must be present or confirmed before the first booking or dispatch step that uses them
- Optional items can stay at the shipped default until the company chooses a production value
- Verify before deploy items have no name or value stated in this pack and must be confirmed by name in locked Worker configuration
- No cap, limit or throttle is added for platform drafting use, and the saved template covers the same task when drafting does not finish
Missing entries to verify before deploy
These entries are not stated in the site pack. Verify each one by name in locked Worker configuration. Do not invent a name or value in app code.
No environment variable names are stated
Sign in, sessions, tenancy, vault, browser and media live in locked core files that are not in this pack. Verify in locked Worker configuration before deploy.
No vault, sign in endpoint, token or media endpoint names are stated
Do not hard code them. Read by reference only.
No connection strings or app settings files are in the pack
They must not be changed through app code.
No security header, CORS, CSP, rate limit or firewall setting names are stated
Standing rules forbid changing them through app code. Do not add them.
No cache setting name is stated
Apply the rule for content hashed files only, as stated above.
No billing, payment or card detail setting is stated
The public form collects no card details. Payment status and a payment method label only are stored.
Health check after deploy
Run these steps in order after deploy. Any step that fails names the missing binding or setting above instead of guessing a default.
Open the home page and a guide
Confirm the home page and one guide load with the shared header, footer and theme colour.
Submit the demo form in a test run
Confirm the form submits through /api/public/request and shows the done message within the shipped timeout.
Sign in and confirm the workspace name
Sign in with a MAJIC account and confirm the workspace name matches the company.
Confirm Rates and scheduling settings shows the seeded defaults
Confirm hourly 125, MCI flat 175, point to point minimum 150, events 140, gratuity 20 percent, lead 3 hours and minimum gap 45 minutes, or confirm the production values the company saved.
Confirm company timezone is saved
Confirm timezone in company profile is saved once and used for pickup date, call time and reports.
Confirm the day board is empty until the first confirmed booking
Confirm the day board and reports show no runs until a real booking is confirmed and assigned. Delete any test record after verification.
Review the matrix, then run the first real day
Open the safe defaults guide for the ordered review steps, or request a demo walkthrough.