[{"data":1,"prerenderedAt":757},["ShallowReactive",2],{"navigation":3,"-deploy-providers-github-pages":234,"-deploy-providers-github-pages-surround":752},[4,81,228],{"title":5,"path":6,"stem":7,"children":8,"icon":10},"Getting Started","/guide","1.guide/0.index",[9,11,16,21,26,31,36,41,46,51,56,61,66,71,76],{"title":5,"path":6,"stem":7,"icon":10},"ph:book-open-duotone",{"title":12,"path":13,"stem":14,"icon":15},"Migration Guide","/guide/migration","1.guide/00.migration","ri:arrow-right-up-line",{"title":17,"path":18,"stem":19,"icon":20},"Server Utils","/guide/utils","1.guide/1.utils","ri:tools-line",{"title":22,"path":23,"stem":24,"icon":25},"Tasks","/guide/tasks","1.guide/10.tasks","codicon:run-all",{"title":27,"path":28,"stem":29,"icon":30},"Server Routes","/guide/routing","1.guide/2.routing","ri:direction-line",{"title":32,"path":33,"stem":34,"icon":35},"WebSocket","/guide/websocket","1.guide/3.websocket","cib:socket-io",{"title":37,"path":38,"stem":39,"icon":40},"KV Storage","/guide/storage","1.guide/4.storage","carbon:datastore",{"title":42,"path":43,"stem":44,"icon":45},"SQL Database","/guide/database","1.guide/5.database","ri:database-2-line",{"title":47,"path":48,"stem":49,"icon":50},"Cache","/guide/cache","1.guide/6.cache","ri:speed-line",{"title":52,"path":53,"stem":54,"icon":55},"Fetch","/guide/fetch","1.guide/7.fetch","ri:global-line",{"title":57,"path":58,"stem":59,"icon":60},"Assets","/guide/assets","1.guide/8.assets","ri:image-2-line",{"title":62,"path":63,"stem":64,"icon":65},"Plugins","/guide/plugins","1.guide/9.plugins","ri:plug-line",{"title":67,"path":68,"stem":69,"icon":70},"Configuration","/guide/configuration","1.guide/97.configuration","ri:settings-3-line",{"title":72,"path":73,"stem":74,"icon":75},"TypeScript","/guide/typescript","1.guide/98.typescript","tabler:brand-typescript",{"title":77,"path":78,"stem":79,"icon":80},"Nightly Channel","/guide/nightly","1.guide/99.nightly","ri:moon-fill",{"title":82,"path":83,"stem":84,"children":85,"icon":87},"Overview","/deploy","2.deploy/0.index",[86,88,92,122,127],{"title":82,"path":83,"stem":84,"icon":87},"ri:upload-cloud-2-line",{"title":89,"path":90,"stem":91,"icon":55},"Edge Workers","/deploy/workers","2.deploy/1.workers",{"title":93,"path":94,"stem":95,"children":96,"page":121},"Runtimes","/deploy/runtimes","2.deploy/10.runtimes",[97,102,106,111,116],{"title":98,"path":99,"stem":100,"icon":101},"Node.js","/deploy/runtimes/node","2.deploy/10.runtimes/1.node","akar-icons:node-fill",{"title":103,"path":104,"stem":105,"icon":25},"Dir","/deploy/runtimes/_dir","2.deploy/10.runtimes/_dir",{"title":107,"path":108,"stem":109,"icon":110},"WinterJS","/deploy/runtimes/_winterjs","2.deploy/10.runtimes/_winterjs","game-icons:cold-heart",{"title":112,"path":113,"stem":114,"icon":115},"Bun","/deploy/runtimes/bun","2.deploy/10.runtimes/bun","simple-icons:bun",{"title":117,"path":118,"stem":119,"icon":120},"Deno","/deploy/runtimes/deno","2.deploy/10.runtimes/deno","simple-icons:deno",false,{"title":123,"path":124,"stem":125,"icon":126},"Custom Preset","/deploy/custom-presets","2.deploy/2.custom-presets","ri:file-code-line",{"title":128,"path":129,"stem":130,"children":131,"page":121},"Providers","/deploy/providers","2.deploy/20.providers",[132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224],{"title":103,"path":133,"stem":134,"icon":135},"/deploy/providers/_dir","2.deploy/20.providers/_dir","tdesign:cloud",{"title":137,"path":138,"stem":139},"Alwaysdata","/deploy/providers/alwaysdata","2.deploy/20.providers/alwaysdata",{"title":141,"path":142,"stem":143},"AWS Lambda","/deploy/providers/aws","2.deploy/20.providers/aws",{"title":145,"path":146,"stem":147},"AWS Amplify","/deploy/providers/aws-amplify","2.deploy/20.providers/aws-amplify",{"title":149,"path":150,"stem":151},"Azure","/deploy/providers/azure","2.deploy/20.providers/azure",{"title":153,"path":154,"stem":155},"Cleavr","/deploy/providers/cleavr","2.deploy/20.providers/cleavr",{"title":157,"path":158,"stem":159},"Cloudflare","/deploy/providers/cloudflare","2.deploy/20.providers/cloudflare",{"title":161,"path":162,"stem":163},"Deno Deploy","/deploy/providers/deno-deploy","2.deploy/20.providers/deno-deploy",{"title":165,"path":166,"stem":167},"DigitalOcean","/deploy/providers/digitalocean","2.deploy/20.providers/digitalocean",{"title":169,"path":170,"stem":171},"Firebase","/deploy/providers/firebase","2.deploy/20.providers/firebase",{"title":173,"path":174,"stem":175},"Flightcontrol","/deploy/providers/flightcontrol","2.deploy/20.providers/flightcontrol",{"title":177,"path":178,"stem":179},"Genezio","/deploy/providers/genezio","2.deploy/20.providers/genezio",{"title":181,"path":182,"stem":183},"GitHub Pages","/deploy/providers/github-pages","2.deploy/20.providers/github-pages",{"title":185,"path":186,"stem":187},"GitLab Pages","/deploy/providers/gitlab-pages","2.deploy/20.providers/gitlab-pages",{"title":189,"path":190,"stem":191},"Heroku","/deploy/providers/heroku","2.deploy/20.providers/heroku",{"title":193,"path":194,"stem":195},"IIS","/deploy/providers/iis","2.deploy/20.providers/iis",{"title":197,"path":198,"stem":199},"Koyeb","/deploy/providers/koyeb","2.deploy/20.providers/koyeb",{"title":201,"path":202,"stem":203},"Netlify","/deploy/providers/netlify","2.deploy/20.providers/netlify",{"title":205,"path":206,"stem":207},"Platform.sh","/deploy/providers/platform-sh","2.deploy/20.providers/platform-sh",{"title":209,"path":210,"stem":211},"Render.com","/deploy/providers/render","2.deploy/20.providers/render",{"title":213,"path":214,"stem":215},"StormKit","/deploy/providers/stormkit","2.deploy/20.providers/stormkit",{"title":217,"path":218,"stem":219},"Vercel","/deploy/providers/vercel","2.deploy/20.providers/vercel",{"title":221,"path":222,"stem":223},"Zeabur","/deploy/providers/zeabur","2.deploy/20.providers/zeabur",{"title":225,"path":226,"stem":227},"Zerops","/deploy/providers/zerops","2.deploy/20.providers/zerops",{"title":229,"path":230,"stem":231,"children":232,"icon":70},"Config","/config","3.config/0.index",[233],{"title":229,"path":230,"stem":231,"icon":70},{"id":235,"title":181,"body":236,"description":746,"extension":747,"meta":748,"navigation":749,"path":182,"seo":750,"stem":183,"__hash__":751},"content/2.deploy/20.providers/github-pages.md",{"type":237,"value":238,"toc":742},"minimark",[239,251,255,260,271,275,281,738],[240,241,242,246,247],"p",{},[243,244,245],"strong",{},"Preset:"," ",[248,249,250],"code",{},"github_pages",[252,253],"read-more",{"title":181,"to":254},"https://pages.github.com/",[256,257,259],"h2",{"id":258},"setup","Setup",[240,261,262,263,270],{},"Follow the steps to ",[264,265,269],"a",{"href":266,"rel":267},"https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-github-pages-site",[268],"nofollow","create a GitHub Pages site",".",[256,272,274],{"id":273},"deployment","Deployment",[240,276,277,278,280],{},"Here is an example GitHub Actions workflow to deploy your site to GitHub Pages using the ",[248,279,250],{}," preset:",[282,283,289],"pre",{"className":284,"code":285,"filename":286,"language":287,"meta":288,"style":288},"language-yaml shiki shiki-themes github-light github-dark github-dark","# https://github.com/actions/deploy-pages#usage\nname: Deploy to GitHub Pages\n\non:\n  workflow_dispatch:\n  push:\n    branches:\n      - main\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n      - run: corepack enable\n      - uses: actions/setup-node@v3\n        with:\n          node-version: \"18\"\n\n      - run: npx nypm install\n      - run: npm run build\n        env:\n          NITRO_PRESET: github_pages\n\n      - name: Upload artifact\n        uses: actions/upload-pages-artifact@v1\n        with:\n          path: ./.output/public\n\n  # Deployment job\n  deploy:\n    # Add a dependency to the build job\n    needs: build\n\n    # Grant GITHUB_TOKEN the permissions required to make a Pages deployment\n    permissions:\n      pages: write      # to deploy to Pages\n      id-token: write   # to verify the deployment originates from an appropriate source\n\n    # Deploy to the github_pages environment\n    environment:\n      name: github-pages\n      url: ${{ steps.deployment.outputs.page_url }}\n\n    # Specify runner + deployment step\n    runs-on: ubuntu-latest\n    steps:\n      - name: Deploy to GitHub Pages\n        id: deployment\n        uses: actions/deploy-pages@v1\n",".github/workflows/deploy.yml","yaml","",[248,290,291,300,315,322,332,340,348,356,365,370,378,386,397,405,418,431,443,451,462,467,479,491,499,510,515,527,538,545,556,561,567,575,581,592,597,603,611,625,638,643,649,657,668,679,684,690,699,706,717,728],{"__ignoreMap":288},[292,293,296],"span",{"class":294,"line":295},"line",1,[292,297,299],{"class":298},"sCsY4","# https://github.com/actions/deploy-pages#usage\n",[292,301,303,307,311],{"class":294,"line":302},2,[292,304,306],{"class":305},"sByVh","name",[292,308,310],{"class":309},"slsVL",": ",[292,312,314],{"class":313},"sfrk1","Deploy to GitHub Pages\n",[292,316,318],{"class":294,"line":317},3,[292,319,321],{"emptyLinePlaceholder":320},true,"\n",[292,323,325,329],{"class":294,"line":324},4,[292,326,328],{"class":327},"suiK_","on",[292,330,331],{"class":309},":\n",[292,333,335,338],{"class":294,"line":334},5,[292,336,337],{"class":305},"  workflow_dispatch",[292,339,331],{"class":309},[292,341,343,346],{"class":294,"line":342},6,[292,344,345],{"class":305},"  push",[292,347,331],{"class":309},[292,349,351,354],{"class":294,"line":350},7,[292,352,353],{"class":305},"    branches",[292,355,331],{"class":309},[292,357,359,362],{"class":294,"line":358},8,[292,360,361],{"class":309},"      - ",[292,363,364],{"class":313},"main\n",[292,366,368],{"class":294,"line":367},9,[292,369,321],{"emptyLinePlaceholder":320},[292,371,373,376],{"class":294,"line":372},10,[292,374,375],{"class":305},"jobs",[292,377,331],{"class":309},[292,379,381,384],{"class":294,"line":380},11,[292,382,383],{"class":305},"  build",[292,385,331],{"class":309},[292,387,389,392,394],{"class":294,"line":388},12,[292,390,391],{"class":305},"    runs-on",[292,393,310],{"class":309},[292,395,396],{"class":313},"ubuntu-latest\n",[292,398,400,403],{"class":294,"line":399},13,[292,401,402],{"class":305},"    steps",[292,404,331],{"class":309},[292,406,408,410,413,415],{"class":294,"line":407},14,[292,409,361],{"class":309},[292,411,412],{"class":305},"uses",[292,414,310],{"class":309},[292,416,417],{"class":313},"actions/checkout@v3\n",[292,419,421,423,426,428],{"class":294,"line":420},15,[292,422,361],{"class":309},[292,424,425],{"class":305},"run",[292,427,310],{"class":309},[292,429,430],{"class":313},"corepack enable\n",[292,432,434,436,438,440],{"class":294,"line":433},16,[292,435,361],{"class":309},[292,437,412],{"class":305},[292,439,310],{"class":309},[292,441,442],{"class":313},"actions/setup-node@v3\n",[292,444,446,449],{"class":294,"line":445},17,[292,447,448],{"class":305},"        with",[292,450,331],{"class":309},[292,452,454,457,459],{"class":294,"line":453},18,[292,455,456],{"class":305},"          node-version",[292,458,310],{"class":309},[292,460,461],{"class":313},"\"18\"\n",[292,463,465],{"class":294,"line":464},19,[292,466,321],{"emptyLinePlaceholder":320},[292,468,470,472,474,476],{"class":294,"line":469},20,[292,471,361],{"class":309},[292,473,425],{"class":305},[292,475,310],{"class":309},[292,477,478],{"class":313},"npx nypm install\n",[292,480,482,484,486,488],{"class":294,"line":481},21,[292,483,361],{"class":309},[292,485,425],{"class":305},[292,487,310],{"class":309},[292,489,490],{"class":313},"npm run build\n",[292,492,494,497],{"class":294,"line":493},22,[292,495,496],{"class":305},"        env",[292,498,331],{"class":309},[292,500,502,505,507],{"class":294,"line":501},23,[292,503,504],{"class":305},"          NITRO_PRESET",[292,506,310],{"class":309},[292,508,509],{"class":313},"github_pages\n",[292,511,513],{"class":294,"line":512},24,[292,514,321],{"emptyLinePlaceholder":320},[292,516,518,520,522,524],{"class":294,"line":517},25,[292,519,361],{"class":309},[292,521,306],{"class":305},[292,523,310],{"class":309},[292,525,526],{"class":313},"Upload artifact\n",[292,528,530,533,535],{"class":294,"line":529},26,[292,531,532],{"class":305},"        uses",[292,534,310],{"class":309},[292,536,537],{"class":313},"actions/upload-pages-artifact@v1\n",[292,539,541,543],{"class":294,"line":540},27,[292,542,448],{"class":305},[292,544,331],{"class":309},[292,546,548,551,553],{"class":294,"line":547},28,[292,549,550],{"class":305},"          path",[292,552,310],{"class":309},[292,554,555],{"class":313},"./.output/public\n",[292,557,559],{"class":294,"line":558},29,[292,560,321],{"emptyLinePlaceholder":320},[292,562,564],{"class":294,"line":563},30,[292,565,566],{"class":298},"  # Deployment job\n",[292,568,570,573],{"class":294,"line":569},31,[292,571,572],{"class":305},"  deploy",[292,574,331],{"class":309},[292,576,578],{"class":294,"line":577},32,[292,579,580],{"class":298},"    # Add a dependency to the build job\n",[292,582,584,587,589],{"class":294,"line":583},33,[292,585,586],{"class":305},"    needs",[292,588,310],{"class":309},[292,590,591],{"class":313},"build\n",[292,593,595],{"class":294,"line":594},34,[292,596,321],{"emptyLinePlaceholder":320},[292,598,600],{"class":294,"line":599},35,[292,601,602],{"class":298},"    # Grant GITHUB_TOKEN the permissions required to make a Pages deployment\n",[292,604,606,609],{"class":294,"line":605},36,[292,607,608],{"class":305},"    permissions",[292,610,331],{"class":309},[292,612,614,617,619,622],{"class":294,"line":613},37,[292,615,616],{"class":305},"      pages",[292,618,310],{"class":309},[292,620,621],{"class":313},"write",[292,623,624],{"class":298},"      # to deploy to Pages\n",[292,626,628,631,633,635],{"class":294,"line":627},38,[292,629,630],{"class":305},"      id-token",[292,632,310],{"class":309},[292,634,621],{"class":313},[292,636,637],{"class":298},"   # to verify the deployment originates from an appropriate source\n",[292,639,641],{"class":294,"line":640},39,[292,642,321],{"emptyLinePlaceholder":320},[292,644,646],{"class":294,"line":645},40,[292,647,648],{"class":298},"    # Deploy to the github_pages environment\n",[292,650,652,655],{"class":294,"line":651},41,[292,653,654],{"class":305},"    environment",[292,656,331],{"class":309},[292,658,660,663,665],{"class":294,"line":659},42,[292,661,662],{"class":305},"      name",[292,664,310],{"class":309},[292,666,667],{"class":313},"github-pages\n",[292,669,671,674,676],{"class":294,"line":670},43,[292,672,673],{"class":305},"      url",[292,675,310],{"class":309},[292,677,678],{"class":313},"${{ steps.deployment.outputs.page_url }}\n",[292,680,682],{"class":294,"line":681},44,[292,683,321],{"emptyLinePlaceholder":320},[292,685,687],{"class":294,"line":686},45,[292,688,689],{"class":298},"    # Specify runner + deployment step\n",[292,691,693,695,697],{"class":294,"line":692},46,[292,694,391],{"class":305},[292,696,310],{"class":309},[292,698,396],{"class":313},[292,700,702,704],{"class":294,"line":701},47,[292,703,402],{"class":305},[292,705,331],{"class":309},[292,707,709,711,713,715],{"class":294,"line":708},48,[292,710,361],{"class":309},[292,712,306],{"class":305},[292,714,310],{"class":309},[292,716,314],{"class":313},[292,718,720,723,725],{"class":294,"line":719},49,[292,721,722],{"class":305},"        id",[292,724,310],{"class":309},[292,726,727],{"class":313},"deployment\n",[292,729,731,733,735],{"class":294,"line":730},50,[292,732,532],{"class":305},[292,734,310],{"class":309},[292,736,737],{"class":313},"actions/deploy-pages@v1\n",[739,740,741],"style",{},"html pre.shiki code .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sByVh, html code.shiki .sByVh{--shiki-light:#22863A;--shiki-default:#85E89D;--shiki-dark:#85E89D}html pre.shiki code .slsVL, html code.shiki .slsVL{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#E1E4E8}html pre.shiki code .sfrk1, html code.shiki .sfrk1{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#9ECBFF}html pre.shiki code .suiK_, html code.shiki .suiK_{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#79B8FF}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);}",{"title":288,"searchDepth":302,"depth":302,"links":743},[744,745],{"id":258,"depth":302,"text":259},{"id":273,"depth":302,"text":274},"Deploy Nitro apps to GitHub Pages.","md",{},{},{"title":181,"description":746},"beiYJT-qNILOwQy-xVMSMa8Vimmf2qQ_VfKSJu7Rfpg",[753,755],{"title":177,"path":178,"stem":179,"description":754,"children":-1},"Deploy Nitro apps to Genezio.",{"title":185,"path":186,"stem":187,"description":756,"children":-1},"Deploy Nitro apps to GitLab Pages.",1778145700986]