[{"data":1,"prerenderedAt":458},["ShallowReactive",2],{"navigation":3,"-deploy-providers-platform-sh":225,"-deploy-providers-platform-sh-surround":453},[4,76,219],{"title":5,"path":6,"stem":7,"children":8,"icon":10},"Docs","/guide","1.guide/0.index",[9,11,16,21,26,31,36,41,46,51,56,61,66,71],{"title":5,"path":6,"stem":7,"icon":10},"ph:book-open-duotone",{"title":12,"path":13,"stem":14,"icon":15},"Server Utils","/guide/utils","1.guide/1.utils","ri:tools-line",{"title":17,"path":18,"stem":19,"icon":20},"Tasks","/guide/tasks","1.guide/10.tasks","codicon:run-all",{"title":22,"path":23,"stem":24,"icon":25},"Server Routes","/guide/routing","1.guide/2.routing","ri:direction-line",{"title":27,"path":28,"stem":29,"icon":30},"WebSocket","/guide/websocket","1.guide/3.websocket","cib:socket-io",{"title":32,"path":33,"stem":34,"icon":35},"KV Storage","/guide/storage","1.guide/4.storage","carbon:datastore",{"title":37,"path":38,"stem":39,"icon":40},"SQL Database","/guide/database","1.guide/5.database","ri:database-2-line",{"title":42,"path":43,"stem":44,"icon":45},"Cache","/guide/cache","1.guide/6.cache","ri:speed-line",{"title":47,"path":48,"stem":49,"icon":50},"Fetch","/guide/fetch","1.guide/7.fetch","ri:global-line",{"title":52,"path":53,"stem":54,"icon":55},"Assets","/guide/assets","1.guide/8.assets","ri:image-2-line",{"title":57,"path":58,"stem":59,"icon":60},"Plugins","/guide/plugins","1.guide/9.plugins","ri:plug-line",{"title":62,"path":63,"stem":64,"icon":65},"Configuration","/guide/configuration","1.guide/97.configuration","ri:settings-3-line",{"title":67,"path":68,"stem":69,"icon":70},"TypeScript","/guide/typescript","1.guide/98.typescript","tabler:brand-typescript",{"title":72,"path":73,"stem":74,"icon":75},"Nightly Channel","/guide/nightly","1.guide/99.nightly","ri:moon-fill",{"title":77,"path":78,"stem":79,"children":80,"icon":82},"Deploy","/deploy","2.deploy/0.index",[81,83,87,113,118],{"title":77,"path":78,"stem":79,"icon":82},"ri:upload-cloud-2-line",{"title":84,"path":85,"stem":86,"icon":50},"Edge Workers","/deploy/workers","2.deploy/1.workers",{"title":88,"path":89,"stem":90,"children":91,"page":112},"Runtimes","/deploy/runtimes","2.deploy/10.runtimes",[92,97,102,107],{"title":93,"path":94,"stem":95,"icon":96},"Node.js","/deploy/runtimes/node","2.deploy/10.runtimes/1.node","akar-icons:node-fill",{"title":98,"path":99,"stem":100,"icon":101},"WinterJS","/deploy/runtimes/_winterjs","2.deploy/10.runtimes/_winterjs","game-icons:cold-heart",{"title":103,"path":104,"stem":105,"icon":106},"Bun","/deploy/runtimes/bun","2.deploy/10.runtimes/bun","simple-icons:bun",{"title":108,"path":109,"stem":110,"icon":111},"Deno","/deploy/runtimes/deno","2.deploy/10.runtimes/deno","simple-icons:deno",false,{"title":114,"path":115,"stem":116,"icon":117},"Custom Preset","/deploy/custom-presets","2.deploy/2.custom-presets","ri:file-code-line",{"title":119,"path":120,"stem":121,"children":122,"page":112},"Providers","/deploy/providers","2.deploy/20.providers",[123,127,131,135,139,143,147,151,155,159,163,167,171,175,179,183,187,191,195,199,203,207,211,215],{"title":124,"path":125,"stem":126},"Alwaysdata","/deploy/providers/alwaysdata","2.deploy/20.providers/alwaysdata",{"title":128,"path":129,"stem":130},"AWS Lambda","/deploy/providers/aws","2.deploy/20.providers/aws",{"title":132,"path":133,"stem":134},"AWS Amplify","/deploy/providers/aws-amplify","2.deploy/20.providers/aws-amplify",{"title":136,"path":137,"stem":138},"Azure","/deploy/providers/azure","2.deploy/20.providers/azure",{"title":140,"path":141,"stem":142},"Cleavr","/deploy/providers/cleavr","2.deploy/20.providers/cleavr",{"title":144,"path":145,"stem":146},"Cloudflare","/deploy/providers/cloudflare","2.deploy/20.providers/cloudflare",{"title":148,"path":149,"stem":150},"Deno Deploy","/deploy/providers/deno-deploy","2.deploy/20.providers/deno-deploy",{"title":152,"path":153,"stem":154},"DigitalOcean","/deploy/providers/digitalocean","2.deploy/20.providers/digitalocean",{"title":156,"path":157,"stem":158},"Edgio","/deploy/providers/edgio","2.deploy/20.providers/edgio",{"title":160,"path":161,"stem":162},"Firebase","/deploy/providers/firebase","2.deploy/20.providers/firebase",{"title":164,"path":165,"stem":166},"Flightcontrol","/deploy/providers/flightcontrol","2.deploy/20.providers/flightcontrol",{"title":168,"path":169,"stem":170},"Genezio","/deploy/providers/genezio","2.deploy/20.providers/genezio",{"title":172,"path":173,"stem":174},"GitHub Pages","/deploy/providers/github-pages","2.deploy/20.providers/github-pages",{"title":176,"path":177,"stem":178},"GitLab Pages","/deploy/providers/gitlab-pages","2.deploy/20.providers/gitlab-pages",{"title":180,"path":181,"stem":182},"Heroku","/deploy/providers/heroku","2.deploy/20.providers/heroku",{"title":184,"path":185,"stem":186},"IIS","/deploy/providers/iis","2.deploy/20.providers/iis",{"title":188,"path":189,"stem":190},"Koyeb","/deploy/providers/koyeb","2.deploy/20.providers/koyeb",{"title":192,"path":193,"stem":194},"Netlify","/deploy/providers/netlify","2.deploy/20.providers/netlify",{"title":196,"path":197,"stem":198},"Platform.sh","/deploy/providers/platform-sh","2.deploy/20.providers/platform-sh",{"title":200,"path":201,"stem":202},"Render.com","/deploy/providers/render","2.deploy/20.providers/render",{"title":204,"path":205,"stem":206},"StormKit","/deploy/providers/stormkit","2.deploy/20.providers/stormkit",{"title":208,"path":209,"stem":210},"Vercel","/deploy/providers/vercel","2.deploy/20.providers/vercel",{"title":212,"path":213,"stem":214},"Zeabur","/deploy/providers/zeabur","2.deploy/20.providers/zeabur",{"title":216,"path":217,"stem":218},"Zerops","/deploy/providers/zerops","2.deploy/20.providers/zerops",{"title":220,"path":221,"stem":222,"children":223,"icon":65},"Config","/config","3.config/0.index",[224],{"title":220,"path":221,"stem":222,"icon":65},{"id":226,"title":196,"body":227,"description":447,"extension":448,"meta":449,"navigation":450,"path":197,"seo":451,"stem":198,"__hash__":452},"content/2.deploy/20.providers/platform-sh.md",{"type":228,"value":229,"toc":444},"minimark",[230,242,246,251,254,261,433,437,440],[231,232,233,237,238],"p",{},[234,235,236],"strong",{},"Preset:"," ",[239,240,241],"code",{},"platform_sh",[243,244],"read-more",{"to":245},"https://platform.sh",[247,248,250],"h2",{"id":249},"setup","Setup",[231,252,253],{},"First, create a new project on platform.sh and link it to the repository you want to auto-deploy with.",[231,255,256,257,260],{},"Then in repository create ",[239,258,259],{},".platform.app.yaml"," file:",[262,263,268],"pre",{"className":264,"code":265,"filename":259,"language":266,"meta":267,"style":267},"language-yaml shiki shiki-themes github-light github-dark github-dark","name: nitro-app\ntype: 'nodejs:18'\ndisk: 128\nweb:\n  commands:\n    start: \"node .output/server/index.mjs\"\nbuild:\n  flavor: none\nhooks:\n  build: |\n    corepack enable\n    npx nypm install\n    NITR_PRESET=platform_sh npm run build\nmounts:\n    '.data':\n        source: local\n        source_path: .data\n","yaml","",[239,269,270,287,298,310,319,327,338,346,357,365,377,383,389,395,403,411,422],{"__ignoreMap":267},[271,272,275,279,283],"span",{"class":273,"line":274},"line",1,[271,276,278],{"class":277},"sByVh","name",[271,280,282],{"class":281},"slsVL",": ",[271,284,286],{"class":285},"sfrk1","nitro-app\n",[271,288,290,293,295],{"class":273,"line":289},2,[271,291,292],{"class":277},"type",[271,294,282],{"class":281},[271,296,297],{"class":285},"'nodejs:18'\n",[271,299,301,304,306],{"class":273,"line":300},3,[271,302,303],{"class":277},"disk",[271,305,282],{"class":281},[271,307,309],{"class":308},"suiK_","128\n",[271,311,313,316],{"class":273,"line":312},4,[271,314,315],{"class":277},"web",[271,317,318],{"class":281},":\n",[271,320,322,325],{"class":273,"line":321},5,[271,323,324],{"class":277},"  commands",[271,326,318],{"class":281},[271,328,330,333,335],{"class":273,"line":329},6,[271,331,332],{"class":277},"    start",[271,334,282],{"class":281},[271,336,337],{"class":285},"\"node .output/server/index.mjs\"\n",[271,339,341,344],{"class":273,"line":340},7,[271,342,343],{"class":277},"build",[271,345,318],{"class":281},[271,347,349,352,354],{"class":273,"line":348},8,[271,350,351],{"class":277},"  flavor",[271,353,282],{"class":281},[271,355,356],{"class":285},"none\n",[271,358,360,363],{"class":273,"line":359},9,[271,361,362],{"class":277},"hooks",[271,364,318],{"class":281},[271,366,368,371,373],{"class":273,"line":367},10,[271,369,370],{"class":277},"  build",[271,372,282],{"class":281},[271,374,376],{"class":375},"so5gQ","|\n",[271,378,380],{"class":273,"line":379},11,[271,381,382],{"class":285},"    corepack enable\n",[271,384,386],{"class":273,"line":385},12,[271,387,388],{"class":285},"    npx nypm install\n",[271,390,392],{"class":273,"line":391},13,[271,393,394],{"class":285},"    NITR_PRESET=platform_sh npm run build\n",[271,396,398,401],{"class":273,"line":397},14,[271,399,400],{"class":277},"mounts",[271,402,318],{"class":281},[271,404,406,409],{"class":273,"line":405},15,[271,407,408],{"class":285},"    '.data'",[271,410,318],{"class":281},[271,412,414,417,419],{"class":273,"line":413},16,[271,415,416],{"class":277},"        source",[271,418,282],{"class":281},[271,420,421],{"class":285},"local\n",[271,423,425,428,430],{"class":273,"line":424},17,[271,426,427],{"class":277},"        source_path",[271,429,282],{"class":281},[271,431,432],{"class":285},".data\n",[243,434],{"to":435,"title":436},"https://docs.platform.sh/create-apps/app-reference.html","Complete list of all available properties",[243,438],{"to":439,"title":436},"https://unjs.io/blog/2023-08-25-nitro-2.6#default-persistent-data-storage",[441,442,443],"style",{},"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 pre.shiki code .so5gQ, html code.shiki .so5gQ{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#F97583}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":267,"searchDepth":289,"depth":289,"links":445},[446],{"id":249,"depth":289,"text":250},"Deploy Nitro apps to platform.sh","md",{},{},{"title":196,"description":447},"sof8OubGL4izH4yTmMGkCk93W5AA45NiA_v8vt98To4",[454,456],{"title":192,"path":193,"stem":194,"description":455,"children":-1},"Deploy Nitro apps to Netlify functions or edge.",{"title":200,"path":201,"stem":202,"description":457,"children":-1},"Deploy Nitro apps to Render.com.",1775117932466]