In your Val.town environment, set:
ADMIN_EMAIL
- Your email address (required)APP_NAMESPACE
- Optional namespace for multiple deployments (defaults to "default")The index.ts
file is already configured as an HTTP trigger. Just save and it's live!
/auth/edit
- Enter your admin emailOnce authenticated:
edit-mode-contenteditable
becomes editableedit-mode-show
become visible/versions
to see change historyThat's it! You now have a fully functional Hyperclay-compatible self-updating page.
DEFAULT_HTML
template/auth/view
to switch back to read-only mode