[{"data":1,"prerenderedAt":1807},["ShallowReactive",2],{"navigation_docs":3,"-run-static-hosts":613,"-run-static-hosts-surround":1804},[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":74,"body":615,"description":1063,"extension":1798,"links":1799,"meta":1800,"navigation":1801,"path":75,"seo":1802,"stem":76,"__hash__":1803},"docs\u002F2.run\u002F3.static-hosts.md",{"type":616,"value":617,"toc":1779},"minimark",[618,630,635,643,674,677,681,684,722,881,884,894,934,944,949,955,1026,1035,1039,1054,1064,1084,1103,1107,1126,1170,1185,1189,1206,1276,1283,1288,1291,1312,1335,1338,1342,1374,1377,1449,1452,1458,1491,1517,1521,1524,1556,1566,1570,1591,1597,1617,1631,1634,1675,1679,1682,1739,1742,1746],[619,620,621,622,626,627,629],"p",{},"The site is static files, so a static host can serve it instead of the site's Caddy image. The site's build writes\nwhat the host needs around those files: the same security and cache headers, the redirects and the not-found pages per\nlanguage. SHADE itself still runs on your own server (",[623,624,625],"a",{"href":47},"Setting up an instance"," or\n",[623,628,70],{"href":71},").",[631,632,634],"h2",{"id":633},"where-to-host-it","Where to host it",[619,636,637,638,642],{},"The default keeps visitors' data in the EU: the site's Caddy image on a server in the EU, or on the client's own.\nA static host sees every visitor's requests, and on some setups their personal data\n(",[623,639,641],{"href":640},"#privacy-what-passes-through-the-host","Privacy","). Choosing a host outside the EU is the business's decision: name the\ntransfer in the site's privacy statement.",[644,645,646,662,668],"ol",{},[647,648,649,653,654,656,657,661],"li",{},[650,651,652],"strong",{},"In the EU: the site's Caddy image on your own server",", beside SHADE or on its own, at a European provider\n(",[623,655,625],{"href":47},", ",[658,659,660],"em",{},"Site (static) and preview","). Everything stays on servers you choose.\nSHADE does not yet write files for a European static host.",[647,663,664,667],{},[650,665,666],{},"Cloudflare"," (Workers with static assets), below. Cloudflare is a US company.",[647,669,670,673],{},[650,671,672],{},"Netlify",", below. Netlify is a US company.",[619,675,676],{},"SHADE's own site runs on Cloudflare.",[631,678,680],{"id":679},"what-still-needs-a-server","What still needs a server",[619,682,683],{},"The static host serves pages, assets, media and the search index. Three things are not files:",[685,686,687,706,712],"ul",{},[647,688,689,692,693,697,698,701,702,705],{},[650,690,691],{},"The preview"," (",[694,695,696],"code",{},"\u002Fpreview",", drafts for the team). It runs on the site's Node server (Dockerfile target ",[694,699,700],{},"preview",")\nat its own address, as the website module's ",[650,703,704],{},"Preview address",". No static host serves it.",[647,707,708,711],{},[650,709,710],{},"Personal parts of pages"," (server islands: the Account greeting, a user's own data). The site's Node server on\nyour instance renders them for each visitor. On Cloudflare the browser asks it directly, at an address of its own\nunder SHADE's; on Netlify they go through the host.",[647,713,714,717,718,721],{},[650,715,716],{},"Forms, sign-in and accounts"," call SHADE's account API (",[694,719,720],{},"\u002Fapi\u002Fv1\u002Faccount\u002F*","), which runs on SHADE's public role.",[723,724,725,748],"table",{},[726,727,728],"thead",{},[729,730,731,734,744,746],"tr",{},[732,733],"th",{},[732,735,736,737,656,740,743],{},"Caddy image (",[694,738,739],{},"static",[694,741,742],{},"runner",")",[732,745,666],{},[732,747,672],{},[749,750,751,764,784,804,820,834,849,867],"tbody",{},[729,752,753,757,760,762],{},[754,755,756],"td",{},"Pages, assets, media, search",[754,758,759],{},"yes",[754,761,759],{},[754,763,759],{},[729,765,766,769,774,780],{},[754,767,768],{},"Security and cache headers",[754,770,771],{},[694,772,773],{},"Caddyfile",[754,775,776,779],{},[694,777,778],{},"_headers"," (the Worker's own answers set them itself)",[754,781,782],{},[694,783,778],{},[729,785,786,789,794,800],{},[754,787,788],{},"Redirects (301\u002F302)",[754,790,791],{},[694,792,793],{},"redirects.caddy",[754,795,796,799],{},[694,797,798],{},"_redirects"," (at most 1,000 redirects)",[754,801,802],{},[694,803,798],{},[729,805,806,809,811,817],{},[754,807,808],{},"Not-found page per language",[754,810,759],{},[754,812,813,814,743],{},"yes (nearest ",[694,815,816],{},"404.html",[754,818,819],{},"yes (a rule per language)",[729,821,822,825,828,831],{},[754,823,824],{},"Personal parts (islands)",[754,826,827],{},"the Node server",[754,829,830],{},"the Node server, asked directly at its own address",[754,832,833],{},"the Node server, through an Edge Function",[729,835,836,840,843,846],{},[754,837,838],{},[694,839,720],{},[754,841,842],{},"on the site's domain",[754,844,845],{},"SHADE's own address; on the site's domain only if you switch the forwarding on",[754,847,848],{},"on the site's domain, through an Edge Function",[729,850,851,854,856,862],{},[754,852,853],{},"Per-visitor limits on the account API",[754,855,759],{},[754,857,858,859],{},"direct: yes; forwarded: with ",[694,860,861],{},"SHADE_PROXY_SECRET",[754,863,864,865],{},"with ",[694,866,861],{},[729,868,869,873,876,879],{},[754,870,871],{},[694,872,696],{},[754,874,875],{},"the runner only",[754,877,878],{},"no: the Node server's own address",[754,880,878],{},[631,882,666],{"id":883},"cloudflare",[619,885,886,887,893],{},"The site runs on ",[623,888,892],{"href":889,"rel":890},"https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002Fstatic-assets\u002F",[891],"nofollow","Cloudflare Workers with static assets",":\nthe build's files are the assets, served as they are. Cloudflare only ever serves public files. Everything personal\nstays between the visitor's browser and your instance:",[685,895,896,904,925],{},[647,897,898,900,901,629],{},[650,899,716],{}," go from the browser to SHADE's public role at its own address\n(",[694,902,903],{},"api.example.com",[647,905,906,908,909,912,913,916,917,920,921,924],{},[650,907,710],{}," come from the site's Node server on your instance, at an address under SHADE's\n(",[694,910,911],{},"islands.api.example.com","). The build seals each part's content with ",[694,914,915],{},"SHADE_ISLAND_SECRET",", so the page holds\nnothing anyone can read or change. In the browser, the page asks the Node server for each part. The Node server\nopens it, asks the account API who the visitor is with their own cookie, and answers ",[694,918,919],{},"private, no-store",", to the site's\nown address only. Without a session it renders the part for nobody (the ",[658,922,923],{},"Sign in"," link, say).",[647,926,927,930,931,933],{},[650,928,929],{},"The sign-in cookie"," is set for ",[694,932,903],{}," and its subdomains, never for the site's domain, so the browser\nnever sends it to Cloudflare.",[619,935,936,937,940,941,943],{},"A small Worker, ",[694,938,939],{},"@shadestack\u002Fcloudflare",", can forward ",[694,942,720],{}," on the site's own domain. That is off by\ndefault, because personal data would then pass through Cloudflare (below).",[945,946,948],"h3",{"id":947},"setting-up-the-instance","Setting up the instance",[619,950,951,952,954],{},"On your instance, next to SHADE's public role at ",[694,953,903],{},":",[644,956,957,984,1016],{},[647,958,959,962,963,656,965,968,969,972,973,975,976,979,980,983],{},[650,960,961],{},"The site's Node server"," (the preview container, ",[623,964,625],{"href":47},[658,966,967],{},"Site (static) and\npreview",") gets a second domain under SHADE's: ",[694,970,971],{},"https:\u002F\u002Fislands.api.example.com",". Give it the same\n",[694,974,915],{}," as the build (at least 32 characters, ",[694,977,978],{},"openssl rand -base64 48","). It answers the island\nroute, ",[694,981,982],{},"\u002Fshade-island",", there.",[647,985,986,989,990,993,994,997,998,1000,1001,1003,1004,1007,1008,1011,1012,1015],{},[650,987,988],{},"SHADE's containers"," (every role) get ",[694,991,992],{},"SHADE_ACCOUNT_URL=https:\u002F\u002Fapi.example.com"," and\n",[694,995,996],{},"SHADE_ACCOUNT_COOKIE_DOMAIN=api.example.com",". The second sets the sign-in cookie for ",[694,999,903],{}," and its\nsubdomains, so the Node server at ",[694,1002,911],{}," gets it with each island request. SHADE refuses to\nstart with a domain that ",[694,1005,1006],{},"SHADE_ACCOUNT_URL"," is not part of. It warns when the domain takes in the site's own address\n(",[694,1009,1010],{},"example.com"," for a site at ",[694,1013,1014],{},"www.example.com","): Cloudflare would then get every signed-in visitor's cookie.",[647,1017,1018,1021,1022,1025],{},[650,1019,1020],{},"The Site URL"," (Settings) is the site's address, ",[694,1023,1024],{},"https:\u002F\u002Fwww.example.com",". The account API and the island route\nanswer the browser only from there.",[619,1027,1028,1029,1031,1032,1034],{},"The site and SHADE must share a domain (",[694,1030,1014],{}," and ",[694,1033,903],{},"). Browsers treat a different domain\nas another site and block its cookies.",[945,1036,1038],{"id":1037},"building","Building",[619,1040,1041,1042,1045,1046,1049,1050,1053],{},"Set ",[694,1043,1044],{},"SHADE_STATIC_HOST=cloudflare",", the island secret and the island route's address when building (or\n",[694,1047,1048],{},"shade({ staticHost: 'cloudflare' })"," in ",[694,1051,1052],{},"astro.config.mjs","):",[1055,1056,1061],"pre",{"className":1057,"code":1059,"language":1060},[1058],"language-text","SHADE_API_URL=https:\u002F\u002Fapi.example.com SHADE_API_TOKEN=… \\\nSHADE_ACCOUNT_URL=https:\u002F\u002Fapi.example.com \\\nSHADE_STATIC_HOST=cloudflare \\\nSHADE_ISLAND_SECRET=… SHADE_ISLAND_URL=https:\u002F\u002Fislands.api.example.com \\\npnpm --filter @shadestack\u002Fsite build\n","text",[694,1062,1059],{"__ignoreMap":1063},"",[685,1065,1066,1079],{},[647,1067,1068,1070,1071,1074,1075,1078],{},[694,1069,915],{},": the Node server's. ",[694,1072,1073],{},"SHADE_ISLAND_URL",": where the pages ask for their personal parts. Each\npage names it in ",[694,1076,1077],{},"\u003Cmeta name=\"shade-island-url\">",", and its Content-Security-Policy allows it. Without the two the\nbuild warns, and personal parts keep their placeholder.",[647,1080,1081,1083],{},[694,1082,1006],{},": where visitors' browsers reach the account API, SHADE's own address.",[619,1085,1086,1087,1090,1091,656,1093,1095,1096,1099,1100,1102],{},"The folder to upload is ",[694,1088,1089],{},"site\u002Fdist\u002Fclient",", with ",[694,1092,778],{},[694,1094,798],{}," and a copy of each language's not-found page\nas ",[694,1097,1098],{},"\u003Clanguage>\u002F404.html",". The build leaves out ",[694,1101,793],{},", which only Caddy reads.",[945,1104,1106],{"id":1105},"the-workers-settings","The Worker's settings",[619,1108,1109,1110,1031,1113,1116,1117,692,1119,1122,1123,954],{},"The site has ",[694,1111,1112],{},"wrangler.jsonc",[694,1114,1115],{},"worker.ts"," in its root. For a site of your own, copy the template from\n",[694,1118,939],{},[694,1120,1121],{},"template\u002F",") and change ",[694,1124,1125],{},"name",[685,1127,1128,1160],{},[647,1129,1130,1133,1134,1137,1138,1141,1142,1144,1145,1148,1149,1152,1153,1156,1157,1159],{},[694,1131,1132],{},"assets.directory"," is the build (",[694,1135,1136],{},"dist\u002Fclient","), ",[694,1139,1140],{},"not_found_handling: \"404-page\""," serves the nearest ",[694,1143,816],{},",\n",[694,1146,1147],{},"html_handling: \"drop-trailing-slash\""," serves each page at its own address (",[694,1150,1151],{},"\u002Fover-ons",", as the site's Caddy does),\nand ",[694,1154,1155],{},"run_worker_first"," sends only ",[694,1158,720],{}," to the Worker.",[647,1161,1162,1163,1165,1166,1169],{},"With the forwarding off (the default) the Worker answers ",[694,1164,720],{}," with ",[694,1167,1168],{},"404"," and needs no settings.",[619,1171,1172,1173,1176,1177,1180,1181,1184],{},"Deploy with ",[694,1174,1175],{},"pnpm exec wrangler deploy"," in the site's folder, after the build. ",[694,1178,1179],{},"pnpm preview:cloudflare"," runs the\nsame Worker on your own machine (",[694,1182,1183],{},"wrangler dev",", Cloudflare's runtime, no account needed).",[945,1186,1188],{"id":1187},"forwarding-the-account-api-on-the-sites-domain-off-by-default","Forwarding the account API on the site's domain (off by default)",[619,1190,1191,1192,1195,1196,1199,1200,1202,1203,1205],{},"To keep forms, sign-in and accounts on the site's own domain, set ",[694,1193,1194],{},"ACCOUNT_API_URL"," in the Worker's ",[694,1197,1198],{},"vars"," to SHADE's\npublic role. Build the site with ",[694,1201,1006],{}," set to the site's own address. The Worker then forwards\n",[694,1204,720],{}," there:",[685,1207,1208,1226,1233,1266],{},[647,1209,1210,1211,1214,1215,1218,1219,1031,1222,1225],{},"with its own ",[694,1212,1213],{},"Host",", the visitor's address in ",[694,1216,1217],{},"X-Forwarded-For",", and the site's host and scheme in\n",[694,1220,1221],{},"X-Forwarded-Host",[694,1223,1224],{},"X-Forwarded-Proto","; it drops forwarding headers a visitor sent;",[647,1227,1228,1229,1232],{},"passing cookies, the body (streamed) and every ",[694,1230,1231],{},"Set-Cookie"," of the answer through, without following redirects;",[647,1234,1235,1236,656,1239,656,1242,656,1245,656,1248,1031,1251,692,1254,1257,1258,1261,1262,1265],{},"allowing ",[694,1237,1238],{},"GET",[694,1240,1241],{},"HEAD",[694,1243,1244],{},"POST",[694,1246,1247],{},"PUT",[694,1249,1250],{},"PATCH",[694,1252,1253],{},"DELETE",[694,1255,1256],{},"405"," otherwise), bodies up to 10 MB (",[694,1259,1260],{},"413"," past that;\nthe API's own limit still applies), and answering ",[694,1263,1264],{},"502"," when SHADE cannot be reached;",[647,1267,1268,1269,692,1272,1275],{},"keeping the API's own ",[694,1270,1271],{},"Cache-Control",[694,1273,1274],{},"no-store"," when it sends none), and adding the site's security headers.",[619,1277,1278,1279,1282],{},"Switching it on is your choice. ",[650,1280,1281],{},"Every form, sign-in and account request then passes through Cloudflare, a US\ncompany: a transfer of personal data outside the EU."," Name Cloudflare as a processor in the site's privacy\nstatement. Have Cloudflare's data processing agreement in place, and the basis for the transfer it relies on\n(the EU–US Data Privacy Framework or standard contractual clauses). The sign-in cookie is then the site's, so\nCloudflare gets it with every request a signed-in visitor makes. The default above avoids all of this.",[1284,1285,1287],"h4",{"id":1286},"the-visitors-address","The visitor's address",[619,1289,1290],{},"When forwarding, the Worker calls the API from Cloudflare's own addresses. Without more, SHADE counts every visitor as\none address, and the account API's per-address limits (sign-in, forms) apply to all of them together. A shared secret\nfixes that:",[644,1292,1293,1299,1305],{},[647,1294,1295,1296,1298],{},"Make a secret of at least 32 characters: ",[694,1297,978],{},".",[647,1300,1301,1302,1304],{},"On SHADE, set it as ",[694,1303,861],{}," on the API's public role (in Coolify, the public container's\nenvironment) and deploy again.",[647,1306,1307,1308,1311],{},"Give the Worker the same value: ",[694,1309,1310],{},"wrangler secret put SHADE_PROXY_SECRET",". The Worker reads it when a request comes\nin; it is never written into a file or the build.",[619,1313,1314,1315,1318,1319,1322,1323,1326,1327,1330,1331,1334],{},"With both set, a request from the Worker carries the secret in ",[694,1316,1317],{},"X-Shade-Proxy-Secret"," and the visitor's address\n(Cloudflare's ",[694,1320,1321],{},"CF-Connecting-IP",") in ",[694,1324,1325],{},"X-Shade-Client-Ip",". SHADE compares the secret in constant time and only then\ncounts the request by that address. A wrong or missing secret does not break the site: the request still works,\ncounted by Cloudflare's address, and SHADE's log says so once (a ",[694,1328,1329],{},"warn"," line: ",[694,1332,1333],{},"a request carried X-Shade-Proxy-Secret that does not match SHADE_PROXY_SECRET …","). Anyone else who sends these headers without the\nsecret is ignored the same way, and modules never see the secret.",[619,1336,1337],{},"To change the secret, set the new one on SHADE and in the Worker at about the same time; in between, visitors are\ncounted together for a moment, nothing fails.",[945,1339,1341],{"id":1340},"cloudflares-limits","Cloudflare's limits",[685,1343,1344,1350,1357,1365],{},[647,1345,1346,1349],{},[650,1347,1348],{},"Files",": 20,000 per deploy on the free plan, 100,000 on a paid plan; 25 MiB per file. Media is part of the build,\nso a large media library counts here.",[647,1351,1352,692,1354,1356],{},[650,1353,181],{},[694,1355,798],{},"): Cloudflare allows 2,000 rules and 1,000 characters a line. Each redirect takes a rule\nfor its path with and without the trailing slash, so at most 1,000 redirects; past that the build leaves the rest out\nwith a warning, and their old paths keep the page that sends the browser on. A redirect always wins over a file at\nits path.",[647,1358,1359,692,1362,1364],{},[650,1360,1361],{},"Headers",[694,1363,778],{},"): 100 rules; the build writes four. They reach the static files only, so the Worker adds the\nsame security headers to its own answers.",[647,1366,1367,1369,1370,1373],{},[650,1368,203],{},": see ",[658,1371,1372],{},"Building on the host's builders"," below.",[631,1375,672],{"id":1376},"netlify",[685,1378,1379,1392,1403,1416],{},[647,1380,1381,692,1383,1385,1386,1388,1389,1298],{},[650,1382,1361],{},[694,1384,778],{},"): the same file as Cloudflare's. Netlify's own ",[694,1387,1271],{}," for pages is the same\n",[694,1390,1391],{},"public, max-age=0, must-revalidate",[647,1393,1394,692,1396,1398,1399,1402],{},[650,1395,181],{},[694,1397,798],{},"): one line per redirect, forced (",[694,1400,1401],{},"301!","), because Netlify otherwise serves the file at\nthe old path. Netlify matches the path with and without the trailing slash.",[647,1404,1405,1408,1409,1412,1413,1298],{},[650,1406,1407],{},"Not found",": a rule per language (",[694,1410,1411],{},"\u002Fen\u002F* \u002Fen\u002F404.html 404",") after the redirects; other paths get ",[694,1414,1415],{},"\u002F404.html",[647,1417,1418,1421,1422,1425,1426,1428,1429,1031,1431,1434,1435,1438,1439,1441,1442,1445,1446,1448],{},[650,1419,1420],{},"Forwarding"," (an Edge Function, ",[694,1423,1424],{},".netlify\u002Fv1\u002Fedge-functions\u002Fshade-forward.js"," in the site's root): Netlify's\nproxy rules cannot pass the visitor's address safely, so the build writes an Edge Function instead, and ",[694,1427,798],{},"\nhas no proxy rules. It is declared for ",[694,1430,720],{},[694,1432,1433],{},"\u002F_server-islands\u002F*"," only (those whose address is set);\nevery other request is a static file without it. It is the same code as the Cloudflare Worker's forwarding and does\nthe same (Netlify's own ",[694,1436,1437],{},"X-Nf-*"," headers dropped too); islands are answered ",[694,1440,919],{},". The visitor's\naddress is Netlify's ",[694,1443,1444],{},"context.ip",", never a header the visitor sent. Netlify's ",[694,1447,778],{}," does not reach an Edge\nFunction's answers, so the function adds the security headers itself. With the forwarding, personal data passes\nthrough Netlify, a US company, as with Cloudflare's forwarding.",[619,1450,1451],{},"Build with the two addresses the forwarding goes to:",[1055,1453,1456],{"className":1454,"code":1455,"language":1060},[1058],"SHADE_API_URL=https:\u002F\u002Fadmin.example.com SHADE_API_TOKEN=… \\\nSHADE_ACCOUNT_URL=https:\u002F\u002Fwww.example.com ASTRO_KEY=… \\\nSHADE_STATIC_HOST=netlify \\\nACCOUNT_API_URL=https:\u002F\u002Fadmin.example.com SITE_SERVER_URL=https:\u002F\u002Fpreview.example.com \\\npnpm --filter @shadestack\u002Fsite build\n",[694,1457,1455],{"__ignoreMap":1063},[685,1459,1460,1478],{},[647,1461,1462,1464,1465,1467,1468,1471,1472,1474,1475,1477],{},[694,1463,1194],{},": where ",[694,1466,720],{}," goes (the API's public role). ",[694,1469,1470],{},"SITE_SERVER_URL",": where\n",[694,1473,1433],{}," goes (the site's Node server). Only their scheme, host and port are used. Without\n",[694,1476,1470],{},", personal parts keep their placeholder and the rest of the site works.",[647,1479,1480,1482,1483,1486,1487,656,1489,629],{},[694,1481,1006],{}," is the site's own address, so forms post to the site's domain; ",[694,1484,1485],{},"ASTRO_KEY"," is the same as the\nNode server's (",[623,1488,625],{"href":47},[658,1490,660],{},[619,1492,1086,1493,1495,1496,1499,1500,1503,1504,1031,1506,1508,1509,1512,1513,1516],{},[694,1494,1089],{},". The build also writes ",[694,1497,1498],{},"site\u002F.netlify\u002Fv1\u002Fedge-functions\u002Fshade-forward.js",",\nin the site's root (Netlify's base directory), not in the uploaded folder, because Netlify picks up generated Edge\nFunctions from ",[694,1501,1502],{},".netlify\u002Fv1\u002Fedge-functions\u002F"," there. A build without ",[694,1505,1194],{},[694,1507,1470],{}," removes it.\nKeep ",[694,1510,1511],{},".netlify"," out of the site's repository (add it to ",[694,1514,1515],{},".gitignore","): it is build output.",[945,1518,1520],{"id":1519},"the-visitors-address-on-netlify","The visitor's address on Netlify",[619,1522,1523],{},"The Edge Function calls the API from Netlify's addresses. As with Cloudflare's forwarding, a shared secret lets SHADE\ncount each visitor:",[644,1525,1526,1535,1553],{},[647,1527,1528,1529,1531,1532,1534],{},"Make a secret of at least 32 characters (",[694,1530,978],{},") and set it as ",[694,1533,861],{}," on\nSHADE's public role.",[647,1536,1537,1538,1540,1541,1544,1545,1548,1549,1552],{},"In the Netlify site, add ",[694,1539,861],{}," under Site configuration, Environment variables (or with\n",[694,1542,1543],{},"netlify env:set","), with a scope that includes ",[650,1546,1547],{},"Functions",". Netlify gives Edge Functions only variables set\nthere; one set in ",[694,1550,1551],{},"netlify.toml"," does not reach them.",[647,1554,1555],{},"Deploy again: an Edge Function gets the variables as they were at its deploy.",[619,1557,1558,1559,1562,1563,1565],{},"The function reads the secret when a request comes in (",[694,1560,1561],{},"Netlify.env.get('SHADE_PROXY_SECRET')","); it is never\nwritten into the function's file or any file of the build. It sends it to the account API only, with the visitor's\naddress from ",[694,1564,1444],{},". A wrong or missing secret does not break the site.",[631,1567,1569],{"id":1568},"building-on-the-hosts-builders-or-uploading","Building on the host's builders, or uploading",[619,1571,1572,1573,656,1576,656,1578,656,1581,656,1584,1587,1588,1590],{},"Cloudflare's and Netlify's builders install the site's dependencies from npm. The site depends on SHADE's packages\n(",[694,1574,1575],{},"@shadestack\u002Fastro",[694,1577,939],{},[694,1579,1580],{},"@shadestack\u002Fcore",[694,1582,1583],{},"@shadestack\u002Fclient",[694,1585,1586],{},"@shadestack\u002Fmodule-sdk","),\nwhich are not on npm yet: they come with the release pipeline (",[623,1589,591],{"href":592},"). Until then,\nbuild the site where the SHADE workspace is (your machine, or a runner of your own) and upload:",[1055,1592,1595],{"className":1593,"code":1594,"language":1060},[1058],"cd site && pnpm exec wrangler deploy\ncd site && npx netlify deploy --prod --no-build --dir dist\u002Fclient\n",[694,1596,1594],{"__ignoreMap":1063},[619,1598,1599,1602,1603,1605,1606,1609,1610,1612,1613,1616],{},[694,1600,1601],{},"wrangler deploy"," reads the site's ",[694,1604,1112],{},": it bundles the Worker and uploads it with the build's files.\nRun ",[694,1607,1608],{},"netlify deploy"," from the site's folder, the base directory, so it finds ",[694,1611,1502],{}," there.\nIt bundles the Edge Function and uploads it with the files. ",[694,1614,1615],{},"--no-build"," keeps it from building the site again.",[619,1618,1619,1620,1623,1624,1627,1628,1630],{},"To rebuild on every publish, the website module's ",[650,1621,1622],{},"Build hook URL"," points at whatever runs that build and upload,\nsuch as a job on your own runner that a webhook starts, with the build's token (",[694,1625,1626],{},"SHADE_API_TOKEN",") and\n",[694,1629,915],{}," as that runner's secrets. The host's own build can do it once every package the site uses is\non npm (the website module's isn't yet): Cloudflare's and Netlify's deploy hooks are build hooks SHADE can call directly, with the same two values as the\nhost's build secrets. Check your plan's builds per month on the host before pointing every publish at it.",[619,1632,1633],{},"With a deploy hook as the build hook:",[685,1635,1636,1653,1662,1669],{},[647,1637,1638,1639,1642,1643,1646,1647,1649,1650,1652],{},"Paste the hook's address (",[694,1640,1641],{},"https:\u002F\u002Fapi.cloudflare.com\u002F…\u002Fdeploy_hooks\u002F…"," or ",[694,1644,1645],{},"https:\u002F\u002Fapi.netlify.com\u002Fbuild_hooks\u002F…",")\nas the website module's ",[650,1648,1622],{},". Its path is the secret: the setting is kept encrypted and never shown\nagain. SHADE calls it with an empty ",[694,1651,1244],{}," once per rebuild, waits 10 seconds at most and follows no redirect.",[647,1654,1655,1656,1659,1660,629],{},"The Builds screen shows each call as ",[650,1657,1658],{},"Sent to the builder"," once the host accepted it. The host's build does not\nreport back to SHADE, so the card stops waiting after 15 minutes; the host's own dashboard shows whether the build\nworked. A refused or unreachable hook shows as failed, with the reason (",[623,1661,203],{"href":204},[647,1663,1664,1665,1668],{},"The site's calls are kept in SHADE's build hook log with any other frontends' calls, for 90 days by default\n(",[650,1666,1667],{},"Settings → Data retention",", \"Build hook log\").",[647,1670,1671,1672,1674],{},"With no report, a cache listed in SHADE in front of the site is never cleared after a build\n(",[623,1673,207],{"href":208},"). Cloudflare and Netlify serve a deploy's new files at once, so\nthe host itself needs no such cache in SHADE.",[631,1676,1678],{"id":1677},"privacy-what-passes-through-the-host","Privacy: what passes through the host",[619,1680,1681],{},"Whatever the setup, the host sees every visitor's address and the pages they ask for, as any web host does. Beyond\nthat:",[723,1683,1684,1698],{},[726,1685,1686],{},[729,1687,1688,1690,1693,1696],{},[732,1689],{},[732,1691,1692],{},"Cloudflare (default)",[732,1694,1695],{},"Cloudflare (forwarding on)",[732,1697,672],{},[749,1699,1700,1714,1726],{},[729,1701,1702,1705,1708,1711],{},[754,1703,1704],{},"Forms, sign-in, accounts",[754,1706,1707],{},"straight to your instance",[754,1709,1710],{},"through Cloudflare",[754,1712,1713],{},"through Netlify (forwarding)",[729,1715,1716,1718,1721,1723],{},[754,1717,710],{},[754,1719,1720],{},"straight from your instance",[754,1722,1720],{},[754,1724,1725],{},"through Netlify from your Node server",[729,1727,1728,1730,1733,1736],{},[754,1729,929],{},[754,1731,1732],{},"never sent to Cloudflare",[754,1734,1735],{},"sent to Cloudflare",[754,1737,1738],{},"sent to Netlify",[619,1740,1741],{},"Cloudflare and Netlify are US companies, so personal data that passes through them leaves the EU. With Cloudflare's\ndefault, the host gets no personal data beyond the visitor's address. With forwarding, or on Netlify, name the host as a\nprocessor in the site's privacy statement, and have its data processing agreement in place.",[631,1743,1745],{"id":1744},"what-a-static-host-cannot-do-yet","What a static host cannot do (yet)",[685,1747,1748,1758,1764,1774],{},[647,1749,1750,1753,1754,1757],{},[650,1751,1752],{},"Realtime updates on Netlify."," Netlify documents a 40-second limit for an Edge Function's answer to start and does\nnot document how long a streamed answer may stay open. Whether a module's live route (",[694,1755,1756],{},"text\u002Fevent-stream",") stays\nopen through the Edge Function is not tested yet; the event stream reconnects by itself when it is closed.",[647,1759,1760,1763],{},[650,1761,1762],{},"More than 1,000 redirects on Cloudflare",": see above (Cloudflare's Bulk Redirects can hold more, set up outside the\nbuild).",[647,1765,1766,1773],{},[650,1767,1768,1769,1772],{},"The ",[694,1770,1771],{},"Server"," header",": Caddy removes it; neither host lets a site do that.",[647,1775,1776,1778],{},[650,1777,691],{}," stays on the Node server's own address, as with the static Caddy image.",{"title":1063,"searchDepth":1780,"depth":1780,"links":1781},2,[1782,1783,1784,1792,1795,1796,1797],{"id":633,"depth":1780,"text":634},{"id":679,"depth":1780,"text":680},{"id":883,"depth":1780,"text":666,"children":1785},[1786,1788,1789,1790,1791],{"id":947,"depth":1787,"text":948},3,{"id":1037,"depth":1787,"text":1038},{"id":1105,"depth":1787,"text":1106},{"id":1187,"depth":1787,"text":1188},{"id":1340,"depth":1787,"text":1341},{"id":1376,"depth":1780,"text":672,"children":1793},[1794],{"id":1519,"depth":1787,"text":1520},{"id":1568,"depth":1780,"text":1569},{"id":1677,"depth":1780,"text":1678},{"id":1744,"depth":1780,"text":1745},"md",null,{},true,{"title":74,"description":1063},"750xc1VJjoFpy9y79bUBYPRAMsTqBvH-6Lz-bzEck2o",[1805,1806],{"title":70,"path":71,"stem":72,"description":1063,"children":-1},{"title":78,"path":79,"stem":80,"description":1063,"children":-1},1796500154113]