[{"data":1,"prerenderedAt":476},["ShallowReactive",2],{"deploy-trigger-navigation":3,"deploy-trigger-version":24,"mdc-o8y00b-key":25,"\u002Fdocs\u002Fdeploy-trigger\u002Fconfiguration":67,"\u002Fdocs\u002Fdeploy-trigger\u002Fconfiguration-surround":473},[4],{"title":5,"path":6,"stem":7,"children":8,"icon":23},"Deploy Trigger","\u002Fdocs\u002Fdeploy-trigger","1.docs\u002F9.deploy-trigger\u002F1.index",[9,11,15,19],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"Configuration","\u002Fdocs\u002Fdeploy-trigger\u002Fconfiguration","1.docs\u002F9.deploy-trigger\u002F2.configuration",{"title":16,"path":17,"stem":18},"Permissions","\u002Fdocs\u002Fdeploy-trigger\u002Fpermissions","1.docs\u002F9.deploy-trigger\u002F3.permissions",{"title":20,"path":21,"stem":22},"Platforms","\u002Fdocs\u002Fdeploy-trigger\u002Fplatforms","1.docs\u002F9.deploy-trigger\u002F4.platforms","i-ri-rocket-2-line",null,{"data":26,"body":27},{},{"type":28,"children":29},"root",[30],{"type":31,"tag":32,"props":33,"children":34},"element","p",{},[35,38,47,49,56,58,65],{"type":36,"value":37},"text","Kirby Tools is built on ",{"type":31,"tag":39,"props":40,"children":44},"a",{"href":41,"rel":42},"https:\u002F\u002Fgetkirby.com",[43],"nofollow",[45],{"type":36,"value":46},"Kirby",{"type":36,"value":48}," – with gratitude to the team and community who make it. Help me improve the plugins: share feedback in ",{"type":31,"tag":39,"props":50,"children":53},{"href":51,"rel":52},"https:\u002F\u002Fgithub.com\u002Fkirby-tools\u002Fcommunity\u002Fdiscussions",[43],[54],{"type":36,"value":55},"Discussions",{"type":36,"value":57}," or report bugs via ",{"type":31,"tag":39,"props":59,"children":62},{"href":60,"rel":61},"https:\u002F\u002Fgithub.com\u002Fkirby-tools\u002Fcommunity\u002Fissues",[43],[63],{"type":36,"value":64},"Issues",{"type":36,"value":66},".",{"id":68,"title":12,"body":69,"description":467,"extension":468,"meta":469,"navigation":470,"path":13,"seo":471,"stem":14,"__hash__":472},"docs\u002F1.docs\u002F9.deploy-trigger\u002F2.configuration.md",{"type":70,"value":71,"toc":459},"minimark",[72,77,88,105,112,170,180,198,291,302,434,455],[73,74,76],"h2",{"id":75},"plugin-options","Plugin Options",[32,78,79,80,84,85,66],{},"Both options live under ",[81,82,83],"code",{},"johannschopplich.deploy-trigger"," in ",[81,86,87],{},"config.php",[89,90,92,95,96],"h3",{"id":91},"deployurl",[81,93,94],{},"deployUrl"," ",[97,98],"u-badge",{"className":99,"label":103,"variant":104},[100,101,102],"align-middle","ml-2","rounded-full!","String","subtle",[32,106,107,108,111],{},"The URL of the deploy hook. Every click sends a ",[81,109,110],{},"POST"," request to it. Required – there is no default.",[113,114,120],"pre",{"className":115,"code":116,"filename":117,"language":118,"meta":119,"style":119},"language-php shiki shiki-themes github-light github-light github-dark","return [\n    'johannschopplich.deploy-trigger' => [\n        'deployUrl' => 'https:\u002F\u002Fapi.netlify.com\u002Fbuild_hooks\u002F\u003Chook-id>'\n    ]\n];\n","site\u002Fconfig\u002Fconfig.php","php","",[81,121,122,135,147,158,164],{"__ignoreMap":119},[123,124,127,131],"span",{"class":125,"line":126},"line",1,[123,128,130],{"class":129},"s8jYJ","return",[123,132,134],{"class":133},"sxrX7"," [\n",[123,136,138,142,145],{"class":125,"line":137},2,[123,139,141],{"class":140},"sIIMD","    'johannschopplich.deploy-trigger'",[123,143,144],{"class":129}," =>",[123,146,134],{"class":133},[123,148,150,153,155],{"class":125,"line":149},3,[123,151,152],{"class":140},"        'deployUrl'",[123,154,144],{"class":129},[123,156,157],{"class":140}," 'https:\u002F\u002Fapi.netlify.com\u002Fbuild_hooks\u002F\u003Chook-id>'\n",[123,159,161],{"class":125,"line":160},4,[123,162,163],{"class":133},"    ]\n",[123,165,167],{"class":125,"line":166},5,[123,168,169],{"class":133},"];\n",[89,171,173,95,176],{"id":172},"requestoptions",[81,174,175],{},"requestOptions",[97,177],{"className":178,"label":179,"variant":104},[100,101,102],"Array",[32,181,182,183,190,191,194,195,197],{},"Options for Kirby's ",[39,184,187],{"href":185,"rel":186},"https:\u002F\u002Fgetkirby.com\u002Fdocs\u002Freference\u002Fobjects\u002Fhttp\u002Fremote",[43],[81,188,189],{},"Remote"," class. Defaults to ",[81,192,193],{},"[]",", a ",[81,196,110],{}," without a body. The ones a deploy hook asks for most:",[199,200,201,214],"table",{},[202,203,204],"thead",{},[205,206,207,211],"tr",{},[208,209,210],"th",{},"Option",[208,212,213],{},"Sets",[215,216,217,232,242,256,269,281],"tbody",{},[205,218,219,225],{},[220,221,222],"td",{},[81,223,224],{},"headers",[220,226,227,228,231],{},"Request headers, such as ",[81,229,230],{},"Authorization",", as an array of names and values",[205,233,234,239],{},[220,235,236],{},[81,237,238],{},"data",[220,240,241],{},"The request body – an array is sent as form fields, a string as it is",[205,243,244,249],{},[220,245,246],{},[81,247,248],{},"agent",[220,250,251,252,255],{},"The ",[81,253,254],{},"User-Agent"," header",[205,257,258,263],{},[220,259,260],{},[81,261,262],{},"basicAuth",[220,264,265,266],{},"HTTP basic authentication, as ",[81,267,268],{},"user:password",[205,270,271,276],{},[220,272,273],{},[81,274,275],{},"method",[220,277,278,279],{},"The HTTP method, for a hook that doesn't take ",[81,280,110],{},[205,282,283,288],{},[220,284,285],{},[81,286,287],{},"timeout",[220,289,290],{},"Seconds to wait for the hook's response",[32,292,293,294,297,298,301],{},"A hook that expects JSON gets the body through ",[81,295,296],{},"json_encode()"," and a matching ",[81,299,300],{},"Content-Type",":",[113,303,305],{"className":115,"code":304,"filename":117,"language":118,"meta":119,"style":119},"return [\n    'johannschopplich.deploy-trigger' => [\n        'deployUrl' => 'https:\u002F\u002Fexample.com\u002Fhooks\u002Fdeploy',\n        'requestOptions' => [\n            'headers' => [\n                'Authorization' => 'Bearer \u003Ctoken>',\n                'Content-Type' => 'application\u002Fjson'\n            ],\n            'data' => json_encode(['branch' => 'main']),\n            'timeout' => 30\n        ]\n    ]\n];\n",[81,306,307,313,321,333,342,351,364,375,381,407,418,424,429],{"__ignoreMap":119},[123,308,309,311],{"class":125,"line":126},[123,310,130],{"class":129},[123,312,134],{"class":133},[123,314,315,317,319],{"class":125,"line":137},[123,316,141],{"class":140},[123,318,144],{"class":129},[123,320,134],{"class":133},[123,322,323,325,327,330],{"class":125,"line":149},[123,324,152],{"class":140},[123,326,144],{"class":129},[123,328,329],{"class":140}," 'https:\u002F\u002Fexample.com\u002Fhooks\u002Fdeploy'",[123,331,332],{"class":133},",\n",[123,334,335,338,340],{"class":125,"line":160},[123,336,337],{"class":140},"        'requestOptions'",[123,339,144],{"class":129},[123,341,134],{"class":133},[123,343,344,347,349],{"class":125,"line":166},[123,345,346],{"class":140},"            'headers'",[123,348,144],{"class":129},[123,350,134],{"class":133},[123,352,354,357,359,362],{"class":125,"line":353},6,[123,355,356],{"class":140},"                'Authorization'",[123,358,144],{"class":129},[123,360,361],{"class":140}," 'Bearer \u003Ctoken>'",[123,363,332],{"class":133},[123,365,367,370,372],{"class":125,"line":366},7,[123,368,369],{"class":140},"                'Content-Type'",[123,371,144],{"class":129},[123,373,374],{"class":140}," 'application\u002Fjson'\n",[123,376,378],{"class":125,"line":377},8,[123,379,380],{"class":133},"            ],\n",[123,382,384,387,389,393,396,399,401,404],{"class":125,"line":383},9,[123,385,386],{"class":140},"            'data'",[123,388,144],{"class":129},[123,390,392],{"class":391},"sBjJW"," json_encode",[123,394,395],{"class":133},"([",[123,397,398],{"class":140},"'branch'",[123,400,144],{"class":129},[123,402,403],{"class":140}," 'main'",[123,405,406],{"class":133},"]),\n",[123,408,410,413,415],{"class":125,"line":409},10,[123,411,412],{"class":140},"            'timeout'",[123,414,144],{"class":129},[123,416,417],{"class":391}," 30\n",[123,419,421],{"class":125,"line":420},11,[123,422,423],{"class":133},"        ]\n",[123,425,427],{"class":125,"line":426},12,[123,428,163],{"class":133},[123,430,432],{"class":125,"line":431},13,[123,433,169],{"class":133},[435,436,440],"callout",{"color":437,"icon":438,"to":439},"info","i-ri-arrow-right-line","\u002Fdocs\u002Fhelpers\u002Fenvironment-variables",[32,441,442,443,446,447,449,450,454],{},"To keep the token out of version control as well, read it from a ",[81,444,445],{},".env"," file in ",[81,448,87],{}," – see ",[451,452,453],"strong",{},"Environment Variables"," in Kirby Helpers.",[456,457,458],"style",{},"html pre.shiki code .s8jYJ, html code.shiki .s8jYJ{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sxrX7, html code.shiki .sxrX7{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sIIMD, html code.shiki .sIIMD{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBjJW, html code.shiki .sBjJW{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":119,"searchDepth":137,"depth":137,"links":460},[461],{"id":75,"depth":137,"text":76,"children":462},[463,465],{"id":91,"depth":149,"text":464},"deployUrl ",{"id":172,"depth":149,"text":466},"requestOptions ","Set the deploy hook URL and the request options your server sends with it.","md",{},true,{"title":12,"description":467},"FKlaYyBhnuweOoErXpDbz2P-RPS_GHuSYG72BHddS1w",[24,474],{"title":16,"path":17,"stem":18,"description":475,"children":-1},"Keep a role from deploying, and let a role whose blueprint switches every permission off deploy anyway.",1793356762640]