[{"data":1,"prerenderedAt":1234},["ShallowReactive",2],{"navigation_docs":3,"-guide-modules-error-forwarding":613,"-guide-modules-error-forwarding-surround":1231},[4,39,101,378,540,562,584,606],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":38},"Start","i-lucide-rocket","\u002Fstart","1.start",[10,14,18,22,26,30,34],{"title":11,"path":12,"stem":13},"Our approach","\u002Fstart\u002Four-approach","1.start\u002F0.our-approach",{"title":15,"path":16,"stem":17},"Introduction","\u002Fstart\u002Fintroduction","1.start\u002F1.introduction",{"title":19,"path":20,"stem":21},"Concepts","\u002Fstart\u002Fconcepts","1.start\u002F2.concepts",{"title":23,"path":24,"stem":25},"Glossary","\u002Fstart\u002Fglossary","1.start\u002F3.glossary",{"title":27,"path":28,"stem":29},"Try it locally","\u002Fstart\u002Ftry-it-locally","1.start\u002F4.try-it-locally",{"title":31,"path":32,"stem":33},"Features","\u002Fstart\u002Ffeatures","1.start\u002F5.features",{"title":35,"path":36,"stem":37},"Questions","\u002Fstart\u002Ffaq","1.start\u002F6.faq",false,{"title":40,"icon":41,"path":42,"stem":43,"children":44,"page":38},"Run SHADE","i-lucide-server","\u002Frun","2.run",[45,49,53,57,61,65,69,73,77,81,85,89,93,97],{"title":46,"path":47,"stem":48},"Setting up an instance (Coolify)","\u002Frun\u002Fcoolify","2.run\u002F1.coolify",{"title":50,"path":51,"stem":52},"Console commands","\u002Frun\u002Fconsole","2.run\u002F10.console",{"title":54,"path":55,"stem":56},"Rotating APP_SECRET","\u002Frun\u002Frotating-app-secret","2.run\u002F11.rotating-app-secret",{"title":58,"path":59,"stem":60},"Checking an instance","\u002Frun\u002Fdoctor","2.run\u002F12.doctor",{"title":62,"path":63,"stem":64},"Self-hosting by hand","\u002Frun\u002Fown-server-by-hand","2.run\u002F13.own-server-by-hand",{"title":66,"path":67,"stem":68},"NixOS (experimental)","\u002Frun\u002Fnixos","2.run\u002F14.nixos",{"title":70,"path":71,"stem":72},"Self-hosting without Coolify","\u002Frun\u002Fown-server","2.run\u002F2.own-server",{"title":74,"path":75,"stem":76},"Hosting the site on a static host","\u002Frun\u002Fstatic-hosts","2.run\u002F3.static-hosts",{"title":78,"path":79,"stem":80},"Licence","\u002Frun\u002Flicence","2.run\u002F4.licence",{"title":82,"path":83,"stem":84},"Updating and backups","\u002Frun\u002Fupdating-and-backups","2.run\u002F5.updating-and-backups",{"title":86,"path":87,"stem":88},"Troubleshooting","\u002Frun\u002Ftroubleshooting","2.run\u002F6.troubleshooting",{"title":90,"path":91,"stem":92},"Logs, request ids, traces and metrics","\u002Frun\u002Flogs","2.run\u002F7.logs",{"title":94,"path":95,"stem":96},"Maintenance mode","\u002Frun\u002Fmaintenance-mode","2.run\u002F8.maintenance-mode",{"title":98,"path":99,"stem":100},"Usage limits","\u002Frun\u002Fusage-limits","2.run\u002F9.usage-limits",{"title":102,"icon":103,"path":104,"stem":105,"children":106},"Guide","i-lucide-book-open","\u002Fguide","3.guide",[107,109,147,192,210,280,310,364],{"title":102,"path":104,"stem":108},"3.guide\u002Findex",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":38},"Content","i-lucide-file-text","\u002Fguide\u002Fcontent","3.guide\u002F1.content",[115,119,123,127,131,135,139,143],{"title":116,"path":117,"stem":118},"Collections and entries","\u002Fguide\u002Fcontent\u002Fcollections","3.guide\u002F1.content\u002F1.collections",{"title":120,"path":121,"stem":122},"Field types","\u002Fguide\u002Fcontent\u002Ffields","3.guide\u002F1.content\u002F2.fields",{"title":124,"path":125,"stem":126},"Drafts, publishing and version history","\u002Fguide\u002Fcontent\u002Fversions","3.guide\u002F1.content\u002F3.versions",{"title":128,"path":129,"stem":130},"Languages","\u002Fguide\u002Fcontent\u002Flanguages","3.guide\u002F1.content\u002F4.languages",{"title":132,"path":133,"stem":134},"Data sources","\u002Fguide\u002Fcontent\u002Fdata-sources","3.guide\u002F1.content\u002F5.data-sources",{"title":136,"path":137,"stem":138},"Media","\u002Fguide\u002Fcontent\u002Fmedia","3.guide\u002F1.content\u002F6.media",{"title":140,"path":141,"stem":142},"Search","\u002Fguide\u002Fcontent\u002Fsearch","3.guide\u002F1.content\u002F7.search",{"title":144,"path":145,"stem":146},"Trash","\u002Fguide\u002Fcontent\u002Ftrash","3.guide\u002F1.content\u002F8.trash",{"title":148,"icon":149,"path":150,"stem":151,"children":152,"page":38},"Website","i-lucide-globe","\u002Fguide\u002Fwebsite","3.guide\u002F2.website",[153,156,160,164,168,172,176,180,184,188],{"title":148,"path":154,"stem":155},"\u002Fguide\u002Fwebsite\u002Fwebsite","3.guide\u002F2.website\u002F1.website",{"title":157,"path":158,"stem":159},"Scroll scenes","\u002Fguide\u002Fwebsite\u002Fscroll-scenes","3.guide\u002F2.website\u002F10.scroll-scenes",{"title":161,"path":162,"stem":163},"Pages and posts","\u002Fguide\u002Fwebsite\u002Fpages","3.guide\u002F2.website\u002F2.pages",{"title":165,"path":166,"stem":167},"The visual editor","\u002Fguide\u002Fwebsite\u002Fvisual-editor","3.guide\u002F2.website\u002F3.visual-editor",{"title":169,"path":170,"stem":171},"Roles and locks","\u002Fguide\u002Fwebsite\u002Froles-and-locks","3.guide\u002F2.website\u002F4.roles-and-locks",{"title":173,"path":174,"stem":175},"Header and footer","\u002Fguide\u002Fwebsite\u002Fheader-and-footer","3.guide\u002F2.website\u002F5.header-and-footer",{"title":177,"path":178,"stem":179},"Theme","\u002Fguide\u002Fwebsite\u002Ftheme","3.guide\u002F2.website\u002F6.theme",{"title":181,"path":182,"stem":183},"Redirects","\u002Fguide\u002Fwebsite\u002Fredirects","3.guide\u002F2.website\u002F7.redirects",{"title":185,"path":186,"stem":187},"Site settings","\u002Fguide\u002Fwebsite\u002Fsite-settings","3.guide\u002F2.website\u002F8.site-settings",{"title":189,"path":190,"stem":191},"The site","\u002Fguide\u002Fwebsite\u002Fthe-site","3.guide\u002F2.website\u002F9.the-site",{"title":193,"icon":194,"path":195,"stem":196,"children":197,"page":38},"Publishing","i-lucide-send","\u002Fguide\u002Fpublishing","3.guide\u002F3.publishing",[198,202,206],{"title":199,"path":200,"stem":201},"Publishing and preview","\u002Fguide\u002Fpublishing\u002Fpublishing","3.guide\u002F3.publishing\u002F1.publishing",{"title":203,"path":204,"stem":205},"Builds","\u002Fguide\u002Fpublishing\u002Fbuilds","3.guide\u002F3.publishing\u002F2.builds",{"title":207,"path":208,"stem":209},"CDN caches","\u002Fguide\u002Fpublishing\u002Fcaches","3.guide\u002F3.publishing\u002F3.caches",{"title":211,"icon":212,"path":213,"stem":214,"children":215,"page":38},"People, security and privacy","i-lucide-shield","\u002Fguide\u002Fpeople-and-security","3.guide\u002F4.people-and-security",[216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276],{"title":217,"path":218,"stem":219},"People in SHADE","\u002Fguide\u002Fpeople-and-security\u002Fpeople-in-shade","3.guide\u002F4.people-and-security\u002F0.people-in-shade",{"title":221,"path":222,"stem":223},"Team and roles","\u002Fguide\u002Fpeople-and-security\u002Fteam","3.guide\u002F4.people-and-security\u002F1.team",{"title":225,"path":226,"stem":227},"Errors and security alerts","\u002Fguide\u002Fpeople-and-security\u002Ferrors","3.guide\u002F4.people-and-security\u002F10.errors",{"title":229,"path":230,"stem":231},"Exporting an instance","\u002Fguide\u002Fpeople-and-security\u002Fexporting","3.guide\u002F4.people-and-security\u002F11.exporting",{"title":233,"path":234,"stem":235},"Organisations","\u002Fguide\u002Fpeople-and-security\u002Forganisations","3.guide\u002F4.people-and-security\u002F12.organisations",{"title":237,"path":238,"stem":239},"Signing in through an identity provider (team)","\u002Fguide\u002Fpeople-and-security\u002Fidentity-providers","3.guide\u002F4.people-and-security\u002F13.identity-providers",{"title":241,"path":242,"stem":243},"System status","\u002Fguide\u002Fpeople-and-security\u002Fsystem-status","3.guide\u002F4.people-and-security\u002F14.system-status",{"title":245,"path":246,"stem":247},"Appearance","\u002Fguide\u002Fpeople-and-security\u002Fappearance","3.guide\u002F4.people-and-security\u002F15.appearance",{"title":249,"path":250,"stem":251},"Accounts and personal pages","\u002Fguide\u002Fpeople-and-security\u002Faccounts","3.guide\u002F4.people-and-security\u002F2.accounts",{"title":253,"path":254,"stem":255},"Signing in (team)","\u002Fguide\u002Fpeople-and-security\u002Fsign-in","3.guide\u002F4.people-and-security\u002F3.sign-in",{"title":257,"path":258,"stem":259},"API tokens","\u002Fguide\u002Fpeople-and-security\u002Fapi-tokens","3.guide\u002F4.people-and-security\u002F4.api-tokens",{"title":261,"path":262,"stem":263},"Audit log","\u002Fguide\u002Fpeople-and-security\u002Faudit","3.guide\u002F4.people-and-security\u002F5.audit",{"title":265,"path":266,"stem":267},"Request protection","\u002Fguide\u002Fpeople-and-security\u002Fprotection","3.guide\u002F4.people-and-security\u002F6.protection",{"title":269,"path":270,"stem":271},"Personal data per person","\u002Fguide\u002Fpeople-and-security\u002Fprivacy","3.guide\u002F4.people-and-security\u002F7.privacy",{"title":273,"path":274,"stem":275},"Data retention","\u002Fguide\u002Fpeople-and-security\u002Fretention","3.guide\u002F4.people-and-security\u002F8.retention",{"title":277,"path":278,"stem":279},"Consent banner","\u002Fguide\u002Fpeople-and-security\u002Fconsent","3.guide\u002F4.people-and-security\u002F9.consent",{"title":281,"icon":282,"path":283,"stem":284,"children":285,"page":38},"Services","i-lucide-plug","\u002Fguide\u002Fservices","3.guide\u002F5.services",[286,290,294,298,302,306],{"title":287,"path":288,"stem":289},"Email","\u002Fguide\u002Fservices\u002Femail","3.guide\u002F5.services\u002F1.email",{"title":291,"path":292,"stem":293},"Opening hours","\u002Fguide\u002Fservices\u002Fopening-hours","3.guide\u002F5.services\u002F4.opening-hours",{"title":295,"path":296,"stem":297},"Webhooks","\u002Fguide\u002Fservices\u002Fwebhooks","3.guide\u002F5.services\u002F5.webhooks",{"title":299,"path":300,"stem":301},"Locations","\u002Fguide\u002Fservices\u002Flocations","3.guide\u002F5.services\u002F6.locations",{"title":303,"path":304,"stem":305},"VAT rates","\u002Fguide\u002Fservices\u002Fvat-rates","3.guide\u002F5.services\u002F7.vat-rates",{"title":307,"path":308,"stem":309},"Channels","\u002Fguide\u002Fservices\u002Fchannels","3.guide\u002F5.services\u002F8.channels",{"title":311,"icon":312,"path":313,"stem":314,"children":315,"page":38},"InstalledModules","i-lucide-puzzle","\u002Fguide\u002Fmodules","3.guide\u002F6.modules",[316,320,324,328,332,336,340,344,348,352,356,360],{"title":317,"path":318,"stem":319},"Modules","\u002Fguide\u002Fmodules\u002Fmanaging","3.guide\u002F6.modules\u002F1.managing",{"title":321,"path":322,"stem":323},"Dutch services (module)","\u002Fguide\u002Fmodules\u002Fnl","3.guide\u002F6.modules\u002F10.nl",{"title":325,"path":326,"stem":327},"Editorial (module)","\u002Fguide\u002Fmodules\u002Feditorial","3.guide\u002F6.modules\u002F11.editorial",{"title":329,"path":330,"stem":331},"Appointments (module)","\u002Fguide\u002Fmodules\u002Fappointments","3.guide\u002F6.modules\u002F2.appointments",{"title":333,"path":334,"stem":335},"Shop (the commerce module)","\u002Fguide\u002Fmodules\u002Fshop","3.guide\u002F6.modules\u002F3.shop",{"title":337,"path":338,"stem":339},"Untrusted modules","\u002Fguide\u002Fmodules\u002Funtrusted","3.guide\u002F6.modules\u002F4.untrusted",{"title":341,"path":342,"stem":343},"Analytics (module)","\u002Fguide\u002Fmodules\u002Fanalytics","3.guide\u002F6.modules\u002F5.analytics",{"title":345,"path":346,"stem":347},"Error forwarding (module)","\u002Fguide\u002Fmodules\u002Ferror-forwarding","3.guide\u002F6.modules\u002F6.error-forwarding",{"title":349,"path":350,"stem":351},"Client programs","\u002Fguide\u002Fmodules\u002Fprograms","3.guide\u002F6.modules\u002F7.programs",{"title":353,"path":354,"stem":355},"Import and export (module)","\u002Fguide\u002Fmodules\u002Fimport","3.guide\u002F6.modules\u002F8.import",{"title":357,"path":358,"stem":359},"Payments (module)","\u002Fguide\u002Fmodules\u002Fpayments","3.guide\u002F6.modules\u002F8.payments",{"title":361,"path":362,"stem":363},"Forms (module)","\u002Fguide\u002Fmodules\u002Fforms","3.guide\u002F6.modules\u002F9.forms",{"title":365,"icon":366,"path":367,"stem":368,"children":369,"page":38},"AI assistants","i-lucide-bot","\u002Fguide\u002Fai","3.guide\u002F7.ai",[370,374],{"title":371,"path":372,"stem":373},"AI assistants (MCP)","\u002Fguide\u002Fai\u002Fassistants","3.guide\u002F7.ai\u002F1.assistants",{"title":375,"path":376,"stem":377},"Connecting an AI assistant","\u002Fguide\u002Fai\u002Fconnecting","3.guide\u002F7.ai\u002F2.connecting",{"title":379,"icon":380,"path":381,"stem":382,"children":383,"page":38},"Developers","i-lucide-code","\u002Fdevelopers","4.developers",[384,388,392,396,400,404,408,412,416,420,424,428,432,435,489,493,497,501,536],{"title":385,"path":386,"stem":387},"Architecture","\u002Fdevelopers\u002Farchitecture","4.developers\u002F1.architecture",{"title":389,"path":390,"stem":391},"Capabilities","\u002Fdevelopers\u002Fcapabilities","4.developers\u002F10.capabilities",{"title":393,"path":394,"stem":395},"Trust","\u002Fdevelopers\u002Ftrust","4.developers\u002F11.trust",{"title":397,"path":398,"stem":399},"Redis and the ports","\u002Fdevelopers\u002Fredis","4.developers\u002F12.redis",{"title":401,"path":402,"stem":403},"The worker container role","\u002Fdevelopers\u002Fworker","4.developers\u002F13.worker",{"title":405,"path":406,"stem":407},"kv: a module's own key-value storage","\u002Fdevelopers\u002Fkv","4.developers\u002F14.kv",{"title":409,"path":410,"stem":411},"Processes: long-running work on the worker","\u002Fdevelopers\u002Fprocesses","4.developers\u002F15.processes",{"title":413,"path":414,"stem":415},"Network: a module's outgoing calls","\u002Fdevelopers\u002Fnetwork","4.developers\u002F16.network",{"title":417,"path":418,"stem":419},"Realtime","\u002Fdevelopers\u002Frealtime","4.developers\u002F17.realtime",{"title":421,"path":422,"stem":423},"Private files","\u002Fdevelopers\u002Ffiles","4.developers\u002F18.files",{"title":425,"path":426,"stem":427},"Notify","\u002Fdevelopers\u002Fnotify","4.developers\u002F19.notify",{"title":429,"path":430,"stem":431},"Collections","\u002Fdevelopers\u002Fcollections","4.developers\u002F2.collections",{"title":337,"path":433,"stem":434},"\u002Fdevelopers\u002Funtrusted","4.developers\u002F20.untrusted",{"title":436,"icon":312,"path":437,"stem":438,"children":439},"Writing a plugin","\u002Fdevelopers\u002Fmodules","4.developers\u002F3.modules\u002Findex",[440,442,446,450,454,458,462,466,470,473,477,481,485],{"title":441,"path":437,"stem":438},"Writing a module",{"title":443,"path":444,"stem":445},"Module SDK and tooling","\u002Fdevelopers\u002Fmodules\u002Fsdk-and-tooling","4.developers\u002F3.modules\u002F1.sdk-and-tooling",{"title":447,"path":448,"stem":449},"Connecting accounts with OAuth2","\u002Fdevelopers\u002Fmodules\u002Foauth","4.developers\u002F3.modules\u002F10.oauth",{"title":451,"path":452,"stem":453},"Calls between modules","\u002Fdevelopers\u002Fmodules\u002Fcalls-between-modules","4.developers\u002F3.modules\u002F11.calls-between-modules",{"title":455,"path":456,"stem":457},"Experimental parts","\u002Fdevelopers\u002Fmodules\u002Fexperimental-parts","4.developers\u002F3.modules\u002F12.experimental-parts",{"title":459,"path":460,"stem":461},"The manifest","\u002Fdevelopers\u002Fmodules\u002Fmanifest","4.developers\u002F3.modules\u002F2.manifest",{"title":463,"path":464,"stem":465},"Routes","\u002Fdevelopers\u002Fmodules\u002Froutes","4.developers\u002F3.modules\u002F3.routes",{"title":467,"path":468,"stem":469},"Admin screens and the site part","\u002Fdevelopers\u002Fmodules\u002Fadmin-and-site","4.developers\u002F3.modules\u002F4.admin-and-site",{"title":110,"path":471,"stem":472},"\u002Fdevelopers\u002Fmodules\u002Fcontent","4.developers\u002F3.modules\u002F5.content",{"title":474,"path":475,"stem":476},"Background work and services","\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services","4.developers\u002F3.modules\u002F6.background-and-services",{"title":478,"path":479,"stem":480},"SDK reference","\u002Fdevelopers\u002Fmodules\u002Fsdk-reference","4.developers\u002F3.modules\u002F7.sdk-reference",{"title":482,"path":483,"stem":484},"The website module's SDK","\u002Fdevelopers\u002Fmodules\u002Fwebsite-sdk","4.developers\u002F3.modules\u002F8.website-sdk",{"title":486,"path":487,"stem":488},"Incoming webhooks","\u002Fdevelopers\u002Fmodules\u002Fincoming-webhooks","4.developers\u002F3.modules\u002F9.incoming-webhooks",{"title":490,"path":491,"stem":492},"Core and the website module","\u002Fdevelopers\u002Fcore-and-website-module","4.developers\u002F4.core-and-website-module",{"title":494,"path":495,"stem":496},"The API","\u002Fdevelopers\u002Fapi","4.developers\u002F6.api",{"title":498,"path":499,"stem":500},"API reference","\u002Fdevelopers\u002Fapi-reference","4.developers\u002F6.api-reference",{"title":502,"icon":503,"path":504,"stem":505,"children":506},"Sites in other frameworks","i-lucide-layout-template","\u002Fdevelopers\u002Fframeworks","4.developers\u002F7.frameworks\u002Findex",[507,508,512,516,520,524,528,532],{"title":502,"path":504,"stem":505},{"title":509,"path":510,"stem":511},"Accounts: sign-in and modules' routes","\u002Fdevelopers\u002Fframeworks\u002Faccounts","4.developers\u002F7.frameworks\u002F1.accounts",{"title":513,"path":514,"stem":515},"`@shadestack\u002Ftree`","\u002Fdevelopers\u002Fframeworks\u002Ftree","4.developers\u002F7.frameworks\u002F2.tree",{"title":517,"path":518,"stem":519},"Expressions and styles","\u002Fdevelopers\u002Fframeworks\u002Fexpressions-and-styles","4.developers\u002F7.frameworks\u002F3.expressions-and-styles",{"title":521,"path":522,"stem":523},"`@shadestack\u002Frender`","\u002Fdevelopers\u002Fframeworks\u002Frender","4.developers\u002F7.frameworks\u002F4.render",{"title":525,"path":526,"stem":527},"`@shadestack\u002Finteractions`","\u002Fdevelopers\u002Fframeworks\u002Finteractions","4.developers\u002F7.frameworks\u002F5.interactions",{"title":529,"path":530,"stem":531},"`@shadestack\u002Fa11y`","\u002Fdevelopers\u002Fframeworks\u002Fa11y","4.developers\u002F7.frameworks\u002F6.a11y",{"title":533,"path":534,"stem":535},"Your own page for SHADE's links","\u002Fdevelopers\u002Fframeworks\u002Flinks","4.developers\u002F7.frameworks\u002F7.links",{"title":537,"path":538,"stem":539},"Build a client module","\u002Fdevelopers\u002Fclient-module","4.developers\u002F9.client-module",{"title":541,"icon":542,"path":543,"stem":544,"children":545,"page":38},"Security","i-lucide-shield-check","\u002Fsecurity","5.security",[546,550,554,558],{"title":547,"path":548,"stem":549},"Reporting a vulnerability","\u002Fsecurity\u002Freporting","5.security\u002F0.reporting",{"title":551,"path":552,"stem":553},"Security testing","\u002Fsecurity\u002Ftesting","5.security\u002F1.testing",{"title":555,"path":556,"stem":557},"Hardening a production instance","\u002Fsecurity\u002Fhardening","5.security\u002F2.hardening",{"title":559,"path":560,"stem":561},"Manual testing with Kali Linux","\u002Fsecurity\u002Fmanual-testing","5.security\u002F3.manual-testing",{"title":563,"icon":564,"path":565,"stem":566,"children":567,"page":38},"Contributing","i-lucide-git-pull-request","\u002Fcontributing","6.contributing",[568,572,576,580],{"title":569,"path":570,"stem":571},"Reading the code","\u002Fcontributing\u002Freading-the-code","6.contributing\u002F1.reading-the-code",{"title":573,"path":574,"stem":575},"Docs site","\u002Fcontributing\u002Fdocs-site","6.contributing\u002F2.docs-site",{"title":577,"path":578,"stem":579},"Releases","\u002Fcontributing\u002Freleases","6.contributing\u002F3.releases",{"title":581,"path":582,"stem":583},"Load tests","\u002Fcontributing\u002Fload-tests","6.contributing\u002F4.load-tests",{"title":585,"icon":586,"path":587,"stem":588,"children":589,"page":38},"Project","i-lucide-map","\u002Fproject","7.project",[590,594,598,602],{"title":591,"path":592,"stem":593},"Roadmap","\u002Fproject\u002Froadmap","7.project\u002F1.roadmap",{"title":595,"path":596,"stem":597},"Known issues","\u002Fproject\u002Fknown-issues","7.project\u002F2.known-issues",{"title":599,"path":600,"stem":601},"Changelog","\u002Fproject\u002Fchangelog","7.project\u002F3.changelog",{"title":603,"path":604,"stem":605},"Decisions","\u002Fproject\u002Fdecisions","7.project\u002F4.decisions",{"title":607,"path":608,"stem":609,"children":610,"icon":612},"Community","\u002Fcommunity","8.community\u002Findex",[611],{"title":607,"path":608,"stem":609},"i-lucide-users",{"id":614,"title":345,"body":615,"description":1212,"extension":1225,"links":1226,"meta":1227,"navigation":1228,"path":346,"seo":1229,"stem":347,"__hash__":1230},"docs\u002F3.guide\u002F6.modules\u002F6.error-forwarding.md",{"type":616,"value":617,"toc":1211},"minimark",[618,631,636,641,687,690,694,703,707,780,785,790,844,854,860,910,913,918,945,949,963,969,973,980,984,990,994,1001,1051,1055,1133,1136,1139,1164,1168,1194,1198],[619,620,621,622,626,627,630],"p",{},"Error forwarding sends the errors SHADE stores in its ",[623,624,625],"a",{"href":226},"error log"," to a GlitchTip or\nSentry that the client picks, and lets you decide which errors go to which server. It is an official module: an admin\ninstalls it, fills in its settings and switches it on under ",[628,629,317],"strong",{},". It has no screen of its own; everything is in\nits settings. It is off until you switch it on, and it sends nothing until a server and a DSN are set.",[632,633,635],"h2",{"id":634},"what-users-can-do","What users can do",[619,637,638],{},[628,639,640],{},"Admins",[642,643,644,655,662,673,680],"ul",{},[645,646,647,648,650,651,654],"li",{},"Install the module and switch it on or off under ",[628,649,317],{}," (",[623,652,653],{"href":318},"Managing modules",").",[645,656,657,658,661],{},"Set the ",[628,659,660],{},"Default server",": its address and the project's DSN.",[645,663,664,665,668,669,672],{},"Optionally set a second, ",[628,666,667],{},"Other server",", and write ",[628,670,671],{},"Rules"," that send some errors there, some to the default\nserver, and some nowhere through this module.",[645,674,675,676,679],{},"Optionally let the site's builds be marked on the server (",[628,677,678],{},"Site builds","), so each site error shows the build it\ncame after.",[645,681,682,683,686],{},"See whether forwarding works under ",[628,684,685],{},"Sending",", below the settings: when an error was last sent, last failed and\nlast refused over SHADE's limit of calls, and the last 20 sends, newest first, each with its server, the error's\ntype and, for one that failed, why.",[619,688,689],{},"Editors and visitors see nothing of it.",[632,691,693],{"id":692},"settings","Settings",[619,695,696,697,699,700,702],{},"Open the module under ",[628,698,317],{}," and choose ",[628,701,693],{},". The form has four sections.",[619,704,705],{},[628,706,660],{},[642,708,709,724,734,744],{},[645,710,711,714,715,719,720,723],{},[628,712,713],{},"Server address",": the address of your GlitchTip or Sentry, such as ",[716,717,718],"code",{},"https:\u002F\u002Ferrors.example.org",". The module calls\nthis address and no other. It must be ",[716,721,722],{},"https",", and a public address (never the server's own network).",[645,725,726,729,730,733],{},[628,727,728],{},"DSN",": the project's DSN, ",[716,731,732],{},"https:\u002F\u002F\u003Ckey>@\u003Chost>\u002F\u003Cproject>",", from the project's settings. It must be on the server\naddress above (the same host). It holds a key, so it is stored encrypted and never shown again.",[645,735,736,739,740,743],{},[628,737,738],{},"Environment name",": optional, such as ",[716,741,742],{},"production","; shown with each error.",[645,745,746,749,750,753,754,758,759],{},[628,747,748],{},"Errors that browsers wrote",": errors from a site's visitors and from modules' admin screens. They are only given\nto the module when the operator also set ",[716,751,752],{},"SHADE_ERROR_REPORTING_SITE=true","\n(",[623,755,757],{"href":756},"\u002Frun\u002Flogs#error-reporting","Error reporting","); this setting is the second gate.\n",[642,760,761,768,774],{},[645,762,763,767],{},[764,765,766],"em",{},"Keep them here"," (the default): they never leave the instance. SHADE's own error reporting doesn't send them\neither, so they are only in the error log.",[645,769,770,773],{},[764,771,772],{},"Forward them by the rules",": like any other error.",[645,775,776,779],{},[764,777,778],{},"Leave them to SHADE's own error reporting",": the module declines them, and SHADE sends them to its own DSN if the\noperator set one.",[619,781,782,784],{},[628,783,667],{},": the same two fields (server address and DSN) for a second server. Rules can send errors here, for\nexample the errors of one module to the project of the team that maintains it. There are two servers because SHADE only\nlets the module call addresses written in its settings, and each address needs its own field.",[619,786,787,789],{},[628,788,671],{},": up to 20, in order. A rule has:",[642,791,792,798,808,826,832],{},[645,793,794,797],{},[628,795,796],{},"Where it happened",": anywhere, the API, a module's hook, a background job, an untrusted module (sandbox), the\nsite's browser, or a module that did not load.",[645,799,800,803,804,807],{},[628,801,802],{},"Module"," (optional): the name of a module, such as ",[716,805,806],{},"commerce",". A rule with both parts matches only errors that fit\nboth; a rule with neither matches every error.",[645,809,810,813,814,817,818,821,822,825],{},[628,811,812],{},"Then",": ",[764,815,816],{},"Send to the default server",", ",[764,819,820],{},"Send to the other server"," or ",[764,823,824],{},"Don't forward",".",[645,827,828,831],{},[628,829,830],{},"Share sent (%)",": of the errors the rule matches, the share that is sent, 100 by default. The rest stay in the\ninstance: SHADE's own error reporting doesn't send them either. Use it for a noisy source.",[645,833,834,817,837,821,840,843],{},[628,835,836],{},"Leave out the message",[628,838,839],{},"the stack",[628,841,842],{},"the request id",": these go without that field. Without the message,\nonly the error's name, its source and the stack's frames (not its text) go.",[619,845,846,847,850,851,825],{},"The ",[628,848,849],{},"first rule that matches decides",". An error that matches no rule goes to the default server, all of it. To set a\nshare or leave fields out for every error, end the list with a rule for ",[764,852,853],{},"Anywhere",[619,855,856,859],{},[628,857,858],{},"Privacy",": what is hidden before an error leaves, on top of what SHADE always takes out.",[642,861,862,900],{},[645,863,864,867,868,871,872,875,876,879,880,883,884,887,888,891,892,895,896,899],{},[628,865,866],{},"Hide long numbers and ids",": on by default. Numbers of six digits or more (phone, customer and citizen service\nnumbers, invoice series such as ",[716,869,870],{},"2026-0001",", also written with spaces, dots or dashes), IBANs and UUIDs are replaced\nwith ",[716,873,874],{},"[number:9]"," (how many digits it had, so a citizen service number shows apart from a longer id), ",[716,877,878],{},"[iban]"," and\n",[716,881,882],{},"[id]",". Dates and times stay, so you still see when something happened: ISO dates and times such as ",[716,885,886],{},"2026-11-17",",\n",[716,889,890],{},"20261117"," and ",[716,893,894],{},"2026-11-17T10:15:00.250+01:00"," (years 1970 to 2099, with a real month and day), and Unix timestamps\nin seconds or milliseconds from 2001 to 2100 (10 or 13 digits starting with 1). A number after a ",[716,897,898],{},"+"," is a phone\nnumber, and stays hidden.",[645,901,902,905,906,909],{},[628,903,904],{},"Words to hide",": up to 20 texts that never leave in an error, whatever their case, such as a client's name; each is\nreplaced with ",[716,907,908],{},"[hidden]",". At least 3 characters.",[619,911,912],{},"Both apply to the message and to the stack's text, never to the stack's frames (the script, line and column the server\nneeds, also for source maps).",[619,914,915,917],{},[628,916,678],{},": optional, for the server the site's errors go to (by the rules above).",[642,919,920,930],{},[645,921,922,925,926,929],{},[628,923,924],{},"Auth token",": an auth token of that server allowed to write releases (",[716,927,928],{},"project:releases","). It holds a key, so it is\nstored encrypted and never shown again.",[645,931,932,891,935,937,938,941,942,825],{},[628,933,934],{},"Organisation",[628,936,585],{},": the slugs of the organisation and of the project site errors go to, such as ",[716,939,940],{},"shade","\nand ",[716,943,944],{},"site",[632,946,948],{"id":947},"site-builds-and-releases","Site builds and releases",[619,950,951,952,955,956,959,960,962],{},"Each build of the site has a release name: the build's start time (",[716,953,954],{},"site@20261117.101500","), or the name the site's\nhost sets in ",[716,957,958],{},"SITE_RELEASE",", such as a commit. Every error the site's visitors report carries it, and the module sends\nit as the error's release; SHADE's own errors carry SHADE's version. When a build is done, the site tells SHADE its\nrelease, and the module creates that release and a deploy of it on the server, with the build's start and end times and\nthe environment name (",[716,961,742],{}," when none is set). The server then shows which build each error came after.",[619,964,965,966,968],{},"Nothing is marked while browsers' errors are not forwarded (the switch is off, or a rule says ",[764,967,824],{}," for the\nsite's browser), without a DSN where site errors go, or without the token, organisation and project. A server without\ndeploys (some GlitchTip versions) keeps the release only. Only the release name and the build's times leave; the auth\ntoken is used for these calls and nothing else. Each marked build is in the audit log.",[632,970,972],{"id":971},"source-maps","Source maps",[619,974,975,976,979],{},"The site's scripts are minified, so a stack from a visitor's browser points at one long line. When a build is marked,\nthe site also sends each of its scripts with its source map, and the module uploads them to the same server, for that\nrelease. The server then shows each error's stack as the code was written. The site never serves a source map: its\nbuild makes them without a reference in the scripts, deletes them once sent, and its web server refuses any ",[716,977,978],{},".map","\naddress. A map too large to send in one request (over about 450 KB gzipped) is left out, and the build says which.",[632,981,983],{"id":982},"what-is-sent","What is sent",[619,985,986,987,989],{},"The scrubbed fields of the error group and nothing else: the error's name, message and stack, its source, the module, the\nrequest id, the release (the site build for a site's error, SHADE's version for the rest), and the environment name if\nyou set one. The format is the same as\nSHADE's own error reporting; the container role tag is the only difference (only SHADE knows it). No request or answer\nbody, header, cookie, address, user or team member is sent. The texts have been scrubbed of email and IP addresses, query\nstrings, credentials and tokens before the module sees them, and the module hides what ",[628,988,858],{}," says and leaves out\nwhat the matching rule says.",[632,991,993],{"id":992},"when-an-error-is-sent-by-shade-instead","When an error is sent by SHADE instead",[619,995,996,997,1000],{},"The module answers per error. SHADE's own error reporting (",[716,998,999],{},"SHADE_ERROR_REPORTING_DSN",") is the fallback, and an error goes\nonce:",[642,1002,1003,1010,1026,1042,1045],{},[645,1004,1005,1006,1009],{},"The module ",[628,1007,1008],{},"sent"," it (the server answered with a success): SHADE sends nothing. The same when the server says it\nis overloaded (it answers 429; the error is not sent again), and for a repeat of an error that already went less\nthan a minute ago: each error repeats on the server at most once a minute (a new or reopened one always goes, and\nthe error log still counts every repeat).",[645,1011,1005,1012,1015,1016,1018,1019,1021,1022,1025],{},[628,1013,1014],{},"kept"," it in the instance: a browser's error while ",[628,1017,748],{}," says ",[764,1020,766],{},",\nor an error a rule's ",[628,1023,1024],{},"Share sent"," leaves out. SHADE sends nothing either; the error log has it.",[645,1027,1028,1029,1031,1032,1035,1036,1038,1039,1041],{},"A rule says ",[628,1030,824],{},", no DSN is set for where the rule sends it, or it is a browser's error left to SHADE's\nown error reporting: the module ",[764,1033,1034],{},"declines",", and SHADE sends the error to ",[716,1037,999],{}," if the operator set one.\nSo ",[628,1040,824],{}," means \"not through this module\", not \"nowhere\": without a DSN in the environment it is sent\nnowhere; with one, SHADE sends it there. That is how SHADE decides it, so the operator's DSN always catches what the\nmodule does not send.",[645,1043,1044],{},"The module is off or failed to load, the server answers with an error, the DSN is wrong or not on the server address,\nthe address is refused, or the call takes longer than 5 seconds: SHADE sends the error to its own DSN, and writes a\nwarning to the log (once a minute at most). The 5 seconds count from when SHADE asked, so the module's own call has\nstopped by then and the error is not sent twice.",[645,1046,1047,1048,1050],{},"A DSN that is wrong or not on its server address also shows under the module's health on the ",[628,1049,317],{}," page\n(\"Errors are not forwarded: …\"), checked every 5 minutes: the form does not check it when you save.",[632,1052,1054],{"id":1053},"who-may-do-it","Who may do it",[1056,1057,1058,1074],"table",{},[1059,1060,1061],"thead",{},[1062,1063,1064,1068,1071],"tr",{},[1065,1066,1067],"th",{},"Action",[1065,1069,1070],{},"Permission",[1065,1072,1073],{},"Roles",[1075,1076,1077,1091,1102,1119],"tbody",{},[1062,1078,1079,1083,1088],{},[1080,1081,1082],"td",{},"Change the module's settings",[1080,1084,1085],{},[716,1086,1087],{},"packages.manage",[1080,1089,1090],{},"admin",[1062,1092,1093,1096,1100],{},[1080,1094,1095],{},"Switch the module on or off",[1080,1097,1098],{},[716,1099,1087],{},[1080,1101,1090],{},[1062,1103,1104,1111,1116],{},[1080,1105,1106,1107,1110],{},"Mark a site build (",[716,1108,1109],{},"POST \u002Fapi\u002Fpackages\u002Ferror-forwarding\u002Fbuilds",")",[1080,1112,1113],{},[716,1114,1115],{},"build.report",[1080,1117,1118],{},"the site's build token",[1062,1120,1121,1127,1131],{},[1080,1122,1123,1124,1110],{},"Send a script's source map (",[716,1125,1126],{},"POST \u002Fapi\u002Fpackages\u002Ferror-forwarding\u002Fbuilds\u002Fsource-maps",[1080,1128,1129],{},[716,1130,1115],{},[1080,1132,1118],{},[619,1134,1135],{},"The module has no actions of its own. It is trusted only: an untrusted module cannot forward errors, and only one\nmodule per instance can.",[632,1137,858],{"id":1138},"privacy",[619,1140,1141,1142,1144,1145,1148,1149,1152,1153,1155,1156,1159,1160,1163],{},"The server you name receives error messages, so it must be yours or in the EU, and the client must know of it\n(",[623,1143,1138],{"href":270},"); nothing is sent until you set a server and a DSN. The module's only\ncapabilities are ",[716,1146,1147],{},"network",", limited to the two server addresses in its settings, ",[716,1150,1151],{},"http",", for the routes the site's\nbuild calls and the ",[628,1154,685],{}," list reads, and ",[716,1157,1158],{},"kv",", for that list (each send's outcome, server, error group and\ntype, never the error's message) and the count of sends refused over the limit, and ",[716,1161,1162],{},"adminPlaces",", to show that list\nbelow the settings. The error log stays the record.",[632,1165,1167],{"id":1166},"rules-and-limits","Rules and limits",[642,1169,1170,1173,1176,1179,1182,1185,1191],{},[645,1171,1172],{},"At most 20 rules and two servers, and 20 words to hide.",[645,1174,1175],{},"5 seconds per error, then SHADE sends it itself.",[645,1177,1178],{},"One repeat of the same error a minute.",[645,1180,1181],{},"30 build markers a minute per build token, and 600 source maps.",[645,1183,1184],{},"A source map of at most 20 MB, sent in one request of at most 1 MB (gzipped).",[645,1186,1187,1188,1190],{},"The DSN must be ",[716,1189,722],{}," with a public key and a numeric project, and on the same host as the server address.",[645,1192,1193],{},"Switching the module off keeps its settings; uninstalling it removes them.",[632,1195,1197],{"id":1196},"for-developers","For developers",[619,1199,1200,1201,1204,1205,825],{},"The code and its tests: the README of ",[716,1202,1203],{},"shade-plugin-error-forwarding",". The manifest part it uses is\n",[623,1206,1208],{"href":1207},"\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services#forwarding-errors-errorforwarding",[716,1209,1210],{},"errorForwarding",{"title":1212,"searchDepth":1213,"depth":1213,"links":1214},"",2,[1215,1216,1217,1218,1219,1220,1221,1222,1223,1224],{"id":634,"depth":1213,"text":635},{"id":692,"depth":1213,"text":693},{"id":947,"depth":1213,"text":948},{"id":971,"depth":1213,"text":972},{"id":982,"depth":1213,"text":983},{"id":992,"depth":1213,"text":993},{"id":1053,"depth":1213,"text":1054},{"id":1138,"depth":1213,"text":858},{"id":1166,"depth":1213,"text":1167},{"id":1196,"depth":1213,"text":1197},"md",null,{},true,{"title":345,"description":1212},"3otfRwdP6OpT5DgxzI--0ZUAbAOUd3YJ55AePdrzMZw",[1232,1233],{"title":341,"path":342,"stem":343,"description":1212,"children":-1},{"title":349,"path":350,"stem":351,"description":1212,"children":-1},1796500150683]