Operations configuration inventory and safe defaults
Use this page to check every configuration value the public site uses in one place, with its required or optional status, its safe default today, what happens if it is missing, and the startup check that proves it before publish. No secret value is published on this page.
How this inventory was checked
Every public file in pack app-permitdesk.site.1 was checked for an environment variable, a Worker binding, a secret reference and a hard-coded constant. That includes public site js, public site css, each marketing page in public, each guide in public guides, public health html, public offline html, public status html, public request demo html, public app index html, and the APPKIT record for bindings and locked files. A value is listed only where a file in the pack states it. Where the pack does not state a value, this page writes Unknown and names the document the town office must supply.
- Scope is the site part only. The signed-in app modules, the Worker entry point, deployment files and database files are not in this pack, so their values are not stated here beyond the binding names in APPKIT.
- A required value blocks the task it belongs to when it is missing. An optional value has a safe default in the source today, and the site keeps working with that default when the value is absent.
- Do not add a secret, password, token, connection string or API key to a page, a script, a log or this template. Server code reads secrets by reference only, as stated in Security.
- Town values set in Setup, such as fee amounts, due days, required documents and reminder caps, are not site config. They are stated in First-run defaults and on Reports and setup, and are not repeated as site defaults here.
Environment variables, bindings and secret references used directly by the site part
Read this table before you set up a town workspace. The site part uses none of these directly, so there is no site environment variable to set before publish. Two server endpoints are used by site files, the form post and the status lookup, and both are listed below.
| Item | Name or value stated in the site pack | Required or optional for the site part | Current fallback in the source | Fail-fast check |
|---|---|---|---|---|
| Environment variables read by public pages, public site js and public site css | None stated in any file checked. No file in the pack reads an environment variable by name. | Not applicable for the site part. No site environment variable is required before publish. | Not applicable. The pages run with the hard-coded values in the template below. | Search the site files for an environment variable name before publish. If a name appears, add it to the template with its required or optional status before you publish. |
| Worker bindings used directly by the site part | None stated for direct use by a public page. APPKIT states a D1 database named DB and an R2 bucket named FILES for the signed-in app. | Not applicable for direct use by the site part. DB and FILES are required for the signed-in app, not for a static public page. | Not applicable for the site part. A form or status failure shows the inline error path in the source. | Unknown: full Worker binding list not in supplied site pack. Ask the town office for the Worker config document for the town workspace and record each binding name there, not on this page. |
| Wrangler config file | wrangler jsonc is named as a locked file in APPKIT. The file itself is not in this pack, so no setting inside it is stated here. | Unknown: required or optional status not in supplied site pack, for values inside that file. | Unknown: fallback values inside that file not in supplied site pack. | Unknown: Worker config file not in supplied site pack. Ask the town office for that file document and record the result in setup notes before you rely on a server value. Do not copy a value from this page into that file. |
| Secret references used directly by the site part | None stated. No secret, password, token or API key appears in any file in this pack. No file in the pack reads a secret by reference. | Not applicable for the site part. No secret reference is required before publish. | Not applicable. Hosted checkout, card numbers and sign-in secrets are handled outside the site part, as stated on Portal and Security. | Search the site files for a secret value before publish. This page and every public page must stay free of secret values. |
| Server endpoint behind the public form | /api/public/request, stated in public site js. The form sends kind, page and the form fields only. | Required for the demo and question forms. The form cannot send without it. | None in the source. When the post fails, public site js shows an inline error with a support code, keeps the entries on the page and offers Try again. It does not fall back to another endpoint. | Open Request a demo and check that a failed send shows the inline error, the support code and the Try again control, with entries kept. Do not test with a real submission in production. |
| Server endpoint behind the public status lookup | GET /api/public/records/status/{code}, stated in public status html. The page sends only the code entered or taken from the page address, with credentials omitted, then clears the code from the address and from the entry box. | Required for the status page. The status check cannot run without it. | None in the source. Any non-success result shows one generic message that the code did not match a public status, with no record list and no statement about whether a record number exists. | Open Check a permit status with no sign-in and check that an unmatched code shows the generic message and that the code is cleared from the address and entry box. Do not test with a live code in production. |
| Dedicated health address | /healthz, stated in public health html, with the home page at / as fallback. | Optional for reading pages. Required for the health check button on that page. | When /healthz does not confirm a status ok result, the result states home page fallback and dedicated /healthz not confirmed. | Open Site status check with no sign-in and check the probe mode and checked-at time in UTC. |
Centralized config template with explicit safe defaults
Use this table as the one template for the site part. Each row uses the exact name and value stated in the source today, so a change to a value is made in this table and in the file that owns it, in the same change. A required row with no safe default blocks publish when it is missing. An optional row keeps the safe default in the table when it is absent.
| Config name, as stated in the source | File that owns it today | Required or optional | Safe default today | Fallback if missing or invalid |
|---|---|---|---|---|
| Form endpoint path | public site js | Required for forms. Optional for pages with no form. | /api/public/request | No fallback endpoint. The form shows an inline error, a support code starting with PD-REQ and Try again, and entries stay on the page. |
| Status lookup endpoint path | public status html | Required for the status page. | /api/public/records/status/{code} | No fallback endpoint. The page shows one generic not matched message and clears the code. |
| Form request timeout | public site js | Optional | 20000 milliseconds | A timeout shows the same inline error, with a support code for the timeout kind, and entries stay on the page. No second submit is sent by the script. |
| Status lookup timeout | public status html | Optional | None stated. No abort timer is in the source. | The browser default applies. A network failure shows check your connection and try again. Do not copy the 20000 millisecond form timeout or the 10000 millisecond health timeout to this path. |
| Form error truncation | public site js | Optional | Server reason truncated to 300 characters, server code truncated to 64 characters, before display. | The support code is shown to the person only. It is never sent as a form field and never stored as a record field. |
| Support code prefix for a failed form send | public site js | Optional | PD-REQ, followed by the date stamp, a short random part and the status or kind where the script adds it | The code is shown to the person only. It is never sent as a form field and never stored as a record field. |
| Service worker path and scope | public site js and public app index html | Optional | /sw.js with scope / | When registration fails, the document marks the service worker as unavailable and shows a support code starting with PD-SW in the console. Pages keep working without it. |
| Health probe address and fallback page | public health html | Optional for reading pages. Required for the health check button on that page. | Dedicated /healthz first, then the home page at / as fallback | When /healthz does not confirm a status ok result, the result states home page fallback and dedicated /healthz not confirmed. Database, file and sign-in readiness are never probed from that public page. |
| Health probe timeout and accepted result | public health html | Optional | 10000 milliseconds, accepted only on a success result with a JSON body whose status is ok | A timeout or any other result shows public site did not serve a page, with the checked at time in UTC and the probe mode. No header, version, server detail or town data is shown. |
| Health fallback hero heading check | public health html | Required for the fallback to confirm a home page. | Home hero heading text One permit record from application to closure, plus Request a demo and id main in the body, and neither That page is not here nor You are offline nor PermitDesk did not finish loading. | When the heading is not served, the fallback does not confirm a home result, even where the home path returns a success status. |
| Offline retry wait and reload | public offline html | Optional | 800 milliseconds after the connection returns, then reload to the same page or workspace address | While offline, the page states still offline with the checked at time and keeps work on the device unsynced. It does not start a new application or workspace. |
| App boot timeout, script fail wait, watcher step and restore window | public app index html | Optional | 15000 milliseconds boot timeout, 600 milliseconds script fail wait, 500 milliseconds navigation watcher step, 30000 milliseconds restore window | When loading does not finish, the shell shows PermitDesk did not finish loading, keeps the workspace address in the tab, and offers Try again and Open workspace home. It does not create a new account or workspace. |
| Tab storage keys for the saved destination | public app index html | Optional | permitdesk:intendedDestination, permitdesk:restoreAfterSignIn and permitdesk:lastRestore, in tab session storage only | Only a safe destination that starts with /app/ is saved or restored. A value that does not pass that check is not used. No workspace is switched by a stored value. |
| Checklist storage keys on guide pages | public guides first-run-defaults html and public guides weekly-review html | Optional | permitdesk:firstRunChecklist:v1 with 7 steps, and permitdesk:weeklyReviewChecklist:v1 with 5 steps, in browser local storage only, as step numbers only | No town name, record number, email or other record detail is stored by those pages, and nothing about progress is sent from those pages. Reset removes the key on that page. |
| Asset paths shared by public pages | Every public page and guide | Optional for reading, required for the styled page | /theme.css, /site.css and /site.js on marketing pages and guides, /manifest.webmanifest, /icons/icon.svg, and /icons/icon-192.png where a page states it | A missing asset leaves the page unstyled or without its script, and the startup checks below name the missing path. Do not replace a path with a value from another town or another page. Note the apple touch icon path varies by page, /icons/icon-192.png on offline and app pages and /icons/icon.svg on API guides. |
| Site origin in structured data | public index html and guides that state structured data | Optional for reading pages | https://permitdesk.appmajic.ai | Structured data is descriptive only. A wrong origin does not change sign-in, workspace selection or a record. Correct the origin in the file that owns it. |
| Theme color and layout breakpoints | Public pages and public site css | Optional | Theme color #111827, breakpoints at 64em, 56.25em, 37.5em and 30em, and 44px to 48px touch targets | Fallback colors are stated inline in public offline html and public app index html for the page background, ink, primary and line where a theme value is absent. Layout stacking is the fallback below 56.25em, with the 64em rule capping the sticky first table column and hero gap. |
| Analytics viewport thresholds | public guides analytics-taxonomy html | Optional. Taxonomy only, no event is sent by the site today. | Mobile at 600 pixels and below, tablet at 601 to 900 pixels, desktop above 900 pixels, from the page width at load | Baseline for every taxonomy event is zero events recorded today. Do not copy these thresholds to a form, health or status timeout. |
See Set up a permit type and fees for town setup steps, Reports and setup for counting and reminder values that are town set in Setup, and First-run defaults for a new workspace for defaults that a town office accepts for a first run. Those town values are not site config and are not repeated here.
Hard-coded constants by file, for the person who changes a value
Work down the table in order when a value must change. Change the value in the file that owns it and in the template above, in the same change, and run the startup checks below before publish.
| File | Constant as stated | Value today | Required or optional |
|---|---|---|---|
| public site js | Form endpoint, request timeout, error truncation 300 and 64, support code prefixes PD-REQ and PD-SW, service worker path /sw.js and scope /, breadcrumb trail paths and feature page paths | /api/public/request, 20000, 300, 64, PD-REQ, PD-SW, /sw.js, / and the trail paths stated in the file | Endpoint required for forms, timeout and prefixes optional, service worker optional, trails optional |
| public status html | Status lookup endpoint, credentials omitted, code cleared after check, no abort timer | /api/public/records/status/{code}, omit, cleared, none stated | Required for the status page |
| public health html | Health probe address, fallback page, probe timeout, accepted JSON status, hero heading check, checked at time format in UTC | /healthz, /, 10000, status ok, One permit record from application to closure, ISO date and time in UTC | Optional for reading, required for the check button on that page |
| public offline html | Retry wait after the connection returns, reload behavior, checked at time format in UTC, fallback colors for background, ink, primary and line | 800, reload to the same address, ISO date and time in UTC, #f8fafc, #111827, #1d4ed8 and #cbd5e1 | Optional |
| public app index html | Boot timeout, script fail wait, watcher step, restore window, three tab storage keys, safe destination rule, fallback colors for background, ink, primary, line, surface and muted | 15000, 600, 500, 30000, the three keys in the template above, /app/ only, #f8fafc, #111827, #1d4ed8, #cbd5e1, #ffffff and #475569 | Optional for the shell, required for restore after an interruption |
| public guides first-run-defaults html and weekly-review html | Checklist storage key, step count, progress bar maximum | permitdesk:firstRunChecklist:v1 with 7 steps, permitdesk:weeklyReviewChecklist:v1 with 5 steps | Optional. Progress is stored on the device only. |
| public site css | Layout breakpoints, touch target sizes, table minimum widths, focus outline sizes and the collapsed navigation rules | 64em, 56.25em, 37.5em and 30em, 44px and 48px targets, 540px, 560px, 640px and 680px table minimums as stated, 3px focus outline | Optional. The small width layout is the fallback. |
| Public pages and guides | Theme color, asset paths, header and footer links, page titles and meta descriptions, structured data origin where stated | #111827, /theme.css, /site.css, /site.js, /manifest.webmanifest, /icons/icon.svg and https://permitdesk.appmajic.ai where stated | Optional for reading, required for a styled and linked page |
Startup checks in order
Run these checks in order before publish, on a test town workspace where the check needs a signed-in page. Each check ends with what you should see when it worked. Stop and fix the file that owns the value when a check fails. Do not publish with a required value missing.
Check the template against the files
Open this page and each file named in the tables above. Confirm each name and value in the template matches the file today, and that no file in the site part reads an environment variable, a binding or a secret reference that is not in the template. You should see one row for every constant the files state, both server endpoints, and Unknown for every Worker config value that is not in this pack.
Run the public liveness check
Open Site status check with no sign-in and choose Run a liveness check now. You should see public site is serving pages, the checked at time in UTC and the probe mode, with no town data, no header, no version and no secret shown. A fallback result must state that dedicated /healthz is not confirmed.
Check the form and status paths without sending a real request
Open Request a demo and read the form fields, the required marks and the Send request control. Open Check a permit status and read the code field and the generic message wording. You should see the form ready to send to /api/public/request, with entries kept on the page when a send fails and a support code shown to the person only, and the status page ready to call /api/public/records/status/{code} with the code cleared after a check. Do not send a real request as a test in production.
Check the offline and loading paths
Open Offline and read the Try again control and the same address wording. Open Sign in and read the loading title and the workspace address line. You should see Try again offered in both places, with no new account and no new workspace offered as a workaround.
Check signed-in readiness separately
Sign in, confirm the workspace name and the role shown on the account, then open the queue or list your role allows, as stated on Security. You should see a readiness result for signed-in work that is separate from the public liveness result in Step 2. A failed liveness check does not prove a database or sign-in fault, and a failed signed-in check does not prove the public site is down.
Record the town decision for every Unknown row
For each Unknown row in this page, either record the Worker config document that states the value in setup notes with the town office, or record that the value stays unknown and is not relied on for the site part. You should see a written decision for every Unknown row before publish, in the same way the security page asks a town to confirm each control in the town agreement.
Test on a test record, then publish
Walk a test record through the setup steps in Set up a permit type and fees. Check that the public pages load with the asset paths above, that the test record does not appear in public search, and that the card and the list show the same records with the same filters, as stated on Reports and setup. You should see the test pass before you publish.
What this page does not publish
This page does not publish a Worker config value, a server environment variable name, a secret reference name, a connection string, a fee amount, a review day count or a town timeline. Those items are not in the site pack, are shown only where a town document states them, and are not added here without that document.
- Unknown: Worker config file not in supplied site pack, including any server environment variable, binding or secret reference name inside that file, and any wrangler setting inside wrangler jsonc.
- Unknown: server endpoint handling behind /api/public/request and behind /api/public/records/status/{code}, not in supplied site pack, beyond the form fields, the code only request and the inline error paths stated in public site js and public status html.
- Unknown: status link code format, expiry and revocation handling, not in supplied site pack, beyond the page clearing the code after a check.
- Unknown: file size limit for uploads not in supplied site pack, where the upload step does not show a limit. Ask the town office for the limit for your record, as stated in Upload plans and documents.
- Unknown: any other jurisdiction, fee, date or code not stated on a record. Ask the town office for the town document for your record and do not use a value from another record or another town.
Bring the config template to the demo
Tell us which value you want to check first, and we will run the startup checks with your town workspace.