Guides · Operations

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.

Environment variables, bindings and secret references, site part
ItemName or value stated in the site packRequired or optional for the site partCurrent fallback in the sourceFail-fast check
Environment variables read by public pages, public site js and public site cssNone 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 partNone 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 filewrangler 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 partNone 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 lookupGET /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.

Site config template, required or optional status, safe default and fallback
Config name, as stated in the sourceFile that owns it todayRequired or optionalSafe default todayFallback if missing or invalid
Form endpoint pathpublic site jsRequired for forms. Optional for pages with no form./api/public/requestNo 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 pathpublic status htmlRequired 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 timeoutpublic site jsOptional20000 millisecondsA 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 timeoutpublic status htmlOptionalNone 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 truncationpublic site jsOptionalServer 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 sendpublic site jsOptionalPD-REQ, followed by the date stamp, a short random part and the status or kind where the script adds itThe 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 scopepublic site js and public app index htmlOptional/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 pagepublic health htmlOptional for reading pages. Required for the health check button on that page.Dedicated /healthz first, then the home page at / as fallbackWhen /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 resultpublic health htmlOptional10000 milliseconds, accepted only on a success result with a JSON body whose status is okA 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 checkpublic health htmlRequired 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 reloadpublic offline htmlOptional800 milliseconds after the connection returns, then reload to the same page or workspace addressWhile 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 windowpublic app index htmlOptional15000 milliseconds boot timeout, 600 milliseconds script fail wait, 500 milliseconds navigation watcher step, 30000 milliseconds restore windowWhen 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 destinationpublic app index htmlOptionalpermitdesk:intendedDestination, permitdesk:restoreAfterSignIn and permitdesk:lastRestore, in tab session storage onlyOnly 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 pagespublic guides first-run-defaults html and public guides weekly-review htmlOptionalpermitdesk:firstRunChecklist:v1 with 7 steps, and permitdesk:weeklyReviewChecklist:v1 with 5 steps, in browser local storage only, as step numbers onlyNo 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 pagesEvery public page and guideOptional 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 itA 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 datapublic index html and guides that state structured dataOptional for reading pageshttps://permitdesk.appmajic.aiStructured 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 breakpointsPublic pages and public site cssOptionalTheme color #111827, breakpoints at 64em, 56.25em, 37.5em and 30em, and 44px to 48px touch targetsFallback 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 thresholdspublic guides analytics-taxonomy htmlOptional. 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 loadBaseline 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.

Hard-coded constants in the site pack, by file
FileConstant as statedValue todayRequired or optional
public site jsForm 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 fileEndpoint required for forms, timeout and prefixes optional, service worker optional, trails optional
public status htmlStatus lookup endpoint, credentials omitted, code cleared after check, no abort timer/api/public/records/status/{code}, omit, cleared, none statedRequired for the status page
public health htmlHealth 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 UTCOptional for reading, required for the check button on that page
public offline htmlRetry wait after the connection returns, reload behavior, checked at time format in UTC, fallback colors for background, ink, primary and line800, reload to the same address, ISO date and time in UTC, #f8fafc, #111827, #1d4ed8 and #cbd5e1Optional
public app index htmlBoot timeout, script fail wait, watcher step, restore window, three tab storage keys, safe destination rule, fallback colors for background, ink, primary, line, surface and muted15000, 600, 500, 30000, the three keys in the template above, /app/ only, #f8fafc, #111827, #1d4ed8, #cbd5e1, #ffffff and #475569Optional for the shell, required for restore after an interruption
public guides first-run-defaults html and weekly-review htmlChecklist storage key, step count, progress bar maximumpermitdesk:firstRunChecklist:v1 with 7 steps, permitdesk:weeklyReviewChecklist:v1 with 5 stepsOptional. Progress is stored on the device only.
public site cssLayout breakpoints, touch target sizes, table minimum widths, focus outline sizes and the collapsed navigation rules64em, 56.25em, 37.5em and 30em, 44px and 48px targets, 540px, 560px, 640px and 680px table minimums as stated, 3px focus outlineOptional. The small width layout is the fallback.
Public pages and guidesTheme 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 statedOptional 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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

Request a demo