[{"data":1,"prerenderedAt":516},["ShallowReactive",2],{"navigation":3,"-deploy-providers-edgeone":402,"-deploy-providers-edgeone-surround":511},[4,93,226,231,386,399],{"title":5,"path":6,"stem":7,"children":8,"icon":92},"","\u002Fdocs","1.docs\u002F1.index",[9,12,17,22,27,32,37,42,47,52,57,62,67,72,77,82,87],{"title":10,"path":6,"stem":7,"icon":11},"简介","i-lucide-compass",{"title":13,"path":14,"stem":15,"icon":16},"快速开始","\u002Fdocs\u002Fquick-start","1.docs\u002F2.quick-start","i-lucide-zap",{"title":18,"path":19,"stem":20,"icon":21},"Renderer","\u002Fdocs\u002Frenderer","1.docs\u002F4.renderer","ri:layout-masonry-line",{"title":23,"path":24,"stem":25,"icon":26},"路由","\u002Fdocs\u002Frouting","1.docs\u002F5.routing","ri:direction-line",{"title":28,"path":29,"stem":30,"icon":31},"资源","\u002Fdocs\u002Fassets","1.docs\u002F50.assets","ri:image-2-line",{"title":33,"path":34,"stem":35,"icon":36},"配置","\u002Fdocs\u002Fconfiguration","1.docs\u002F50.configuration","ri:settings-3-line",{"title":38,"path":39,"stem":40,"icon":41},"数据库","\u002Fdocs\u002Fdatabase","1.docs\u002F50.database","ri:database-2-line",{"title":43,"path":44,"stem":45,"icon":46},"生命周期","\u002Fdocs\u002Flifecycle","1.docs\u002F50.lifecycle","i-lucide-layers",{"title":48,"path":49,"stem":50,"icon":51},"OpenAPI","\u002Fdocs\u002Fopenapi","1.docs\u002F50.openapi","ri:contract-line",{"title":53,"path":54,"stem":55,"icon":56},"插件","\u002Fdocs\u002Fplugins","1.docs\u002F50.plugins","ri:plug-line",{"title":58,"path":59,"stem":60,"icon":61},"任务","\u002Fdocs\u002Ftasks","1.docs\u002F50.tasks","codicon:run-all",{"title":63,"path":64,"stem":65,"icon":66},"WebSocket","\u002Fdocs\u002Fwebsocket","1.docs\u002F50.websocket","ri:broadcast-fill",{"title":68,"path":69,"stem":70,"icon":71},"服务端入口","\u002Fdocs\u002Fserver-entry","1.docs\u002F6.server-entry","ri:server-line",{"title":73,"path":74,"stem":75,"icon":76},"缓存","\u002Fdocs\u002Fcache","1.docs\u002F7.cache","ri:speed-line",{"title":78,"path":79,"stem":80,"icon":81},"KV 存储","\u002Fdocs\u002Fstorage","1.docs\u002F8.storage","carbon:datastore",{"title":83,"path":84,"stem":85,"icon":86},"迁移指南","\u002Fdocs\u002Fmigration","1.docs\u002F99.migration","ri:arrow-right-up-line",{"title":88,"path":89,"stem":90,"icon":91},"每日构建通道","\u002Fdocs\u002Fnightly","1.docs\u002F99.nightly","ri:moon-fill","i-lucide-book-open",{"title":94,"path":95,"stem":96,"children":97,"icon":99},"部署","\u002Fdeploy","2.deploy\u002F0.index",[98,100,121],{"title":94,"path":95,"stem":96,"icon":99},"ri:upload-cloud-2-line",{"title":101,"path":102,"stem":103,"children":104,"page":120},"Runtimes","\u002Fdeploy\u002Fruntimes","2.deploy\u002F10.runtimes",[105,110,115],{"title":106,"path":107,"stem":108,"icon":109},"Node.js","\u002Fdeploy\u002Fruntimes\u002Fnode","2.deploy\u002F10.runtimes\u002F1.node","akar-icons:node-fill",{"title":111,"path":112,"stem":113,"icon":114},"Bun","\u002Fdeploy\u002Fruntimes\u002Fbun","2.deploy\u002F10.runtimes\u002Fbun","simple-icons:bun",{"title":116,"path":117,"stem":118,"icon":119},"Deno","\u002Fdeploy\u002Fruntimes\u002Fdeno","2.deploy\u002F10.runtimes\u002Fdeno","simple-icons:deno",false,{"title":122,"path":123,"stem":124,"children":125,"page":120},"Providers","\u002Fdeploy\u002Fproviders","2.deploy\u002F20.providers",[126,130,134,138,142,146,150,154,158,162,166,170,174,178,182,186,190,194,198,202,206,210,214,218,222],{"title":127,"path":128,"stem":129},"Alwaysdata","\u002Fdeploy\u002Fproviders\u002Falwaysdata","2.deploy\u002F20.providers\u002Falwaysdata",{"title":131,"path":132,"stem":133},"AWS Lambda","\u002Fdeploy\u002Fproviders\u002Faws","2.deploy\u002F20.providers\u002Faws",{"title":135,"path":136,"stem":137},"AWS Amplify","\u002Fdeploy\u002Fproviders\u002Faws-amplify","2.deploy\u002F20.providers\u002Faws-amplify",{"title":139,"path":140,"stem":141},"Azure","\u002Fdeploy\u002Fproviders\u002Fazure","2.deploy\u002F20.providers\u002Fazure",{"title":143,"path":144,"stem":145},"Cleavr","\u002Fdeploy\u002Fproviders\u002Fcleavr","2.deploy\u002F20.providers\u002Fcleavr",{"title":147,"path":148,"stem":149},"Cloudflare","\u002Fdeploy\u002Fproviders\u002Fcloudflare","2.deploy\u002F20.providers\u002Fcloudflare",{"title":151,"path":152,"stem":153},"Deno Deploy","\u002Fdeploy\u002Fproviders\u002Fdeno-deploy","2.deploy\u002F20.providers\u002Fdeno-deploy",{"title":155,"path":156,"stem":157},"DigitalOcean","\u002Fdeploy\u002Fproviders\u002Fdigitalocean","2.deploy\u002F20.providers\u002Fdigitalocean",{"title":159,"path":160,"stem":161},"EdgeOne Pages","\u002Fdeploy\u002Fproviders\u002Fedgeone","2.deploy\u002F20.providers\u002Fedgeone",{"title":163,"path":164,"stem":165},"Firebase","\u002Fdeploy\u002Fproviders\u002Ffirebase","2.deploy\u002F20.providers\u002Ffirebase",{"title":167,"path":168,"stem":169},"Flightcontrol","\u002Fdeploy\u002Fproviders\u002Fflightcontrol","2.deploy\u002F20.providers\u002Fflightcontrol",{"title":171,"path":172,"stem":173},"Genezio","\u002Fdeploy\u002Fproviders\u002Fgenezio","2.deploy\u002F20.providers\u002Fgenezio",{"title":175,"path":176,"stem":177},"GitHub Pages","\u002Fdeploy\u002Fproviders\u002Fgithub-pages","2.deploy\u002F20.providers\u002Fgithub-pages",{"title":179,"path":180,"stem":181},"GitLab Pages","\u002Fdeploy\u002Fproviders\u002Fgitlab-pages","2.deploy\u002F20.providers\u002Fgitlab-pages",{"title":183,"path":184,"stem":185},"Heroku","\u002Fdeploy\u002Fproviders\u002Fheroku","2.deploy\u002F20.providers\u002Fheroku",{"title":187,"path":188,"stem":189},"IIS","\u002Fdeploy\u002Fproviders\u002Fiis","2.deploy\u002F20.providers\u002Fiis",{"title":191,"path":192,"stem":193},"Koyeb","\u002Fdeploy\u002Fproviders\u002Fkoyeb","2.deploy\u002F20.providers\u002Fkoyeb",{"title":195,"path":196,"stem":197},"Netlify","\u002Fdeploy\u002Fproviders\u002Fnetlify","2.deploy\u002F20.providers\u002Fnetlify",{"title":199,"path":200,"stem":201},"Platform.sh","\u002Fdeploy\u002Fproviders\u002Fplatform-sh","2.deploy\u002F20.providers\u002Fplatform-sh",{"title":203,"path":204,"stem":205},"Render.com","\u002Fdeploy\u002Fproviders\u002Frender","2.deploy\u002F20.providers\u002Frender",{"title":207,"path":208,"stem":209},"StormKit","\u002Fdeploy\u002Fproviders\u002Fstormkit","2.deploy\u002F20.providers\u002Fstormkit",{"title":211,"path":212,"stem":213},"Vercel","\u002Fdeploy\u002Fproviders\u002Fvercel","2.deploy\u002F20.providers\u002Fvercel",{"title":215,"path":216,"stem":217},"Zeabur","\u002Fdeploy\u002Fproviders\u002Fzeabur","2.deploy\u002F20.providers\u002Fzeabur",{"title":219,"path":220,"stem":221},"Zephyr Cloud","\u002Fdeploy\u002Fproviders\u002Fzephyr","2.deploy\u002F20.providers\u002Fzephyr",{"title":223,"path":224,"stem":225},"Zerops","\u002Fdeploy\u002Fproviders\u002Fzerops","2.deploy\u002F20.providers\u002Fzerops",{"title":33,"path":227,"stem":228,"children":229,"icon":36},"\u002Fconfig","3.config\u002F0.index",[230],{"title":33,"path":227,"stem":228,"icon":36},{"title":232,"path":233,"stem":234,"children":235,"icon":237},"示例","\u002Fexamples","4.examples\u002F0.index",[236,238,243,248,253,258,262,267,272,277,282,287,292,296,301,305,309,314,319,324,329,334,339,344,349,354,358,363,368,372,377,382],{"title":232,"path":233,"stem":234,"icon":237},"i-lucide-folder-code",{"title":239,"path":240,"stem":241,"icon":242},"API 路由","\u002Fexamples\u002Fapi-routes","4.examples\u002Fapi-routes","i-lucide-route",{"title":244,"path":245,"stem":246,"icon":247},"自动导入","\u002Fexamples\u002Fauto-imports","4.examples\u002Fauto-imports","i-lucide-import",{"title":249,"path":250,"stem":251,"icon":252},"缓存处理器","\u002Fexamples\u002Fcached-handler","4.examples\u002Fcached-handler","i-lucide-clock",{"title":254,"path":255,"stem":256,"icon":257},"自定义错误处理器","\u002Fexamples\u002Fcustom-error-handler","4.examples\u002Fcustom-error-handler","i-lucide-alert-circle",{"title":38,"path":259,"stem":260,"icon":261},"\u002Fexamples\u002Fdatabase","4.examples\u002Fdatabase","i-lucide-database",{"title":263,"path":264,"stem":265,"icon":266},"Elysia","\u002Fexamples\u002Felysia","4.examples\u002Felysia","i-skill-icons-elysia-dark",{"title":268,"path":269,"stem":270,"icon":271},"Express","\u002Fexamples\u002Fexpress","4.examples\u002Fexpress","i-simple-icons-express",{"title":273,"path":274,"stem":275,"icon":276},"Fastify","\u002Fexamples\u002Ffastify","4.examples\u002Ffastify","i-simple-icons-fastify",{"title":278,"path":279,"stem":280,"icon":281},"你好世界","\u002Fexamples\u002Fhello-world","4.examples\u002Fhello-world","i-lucide-sparkles",{"title":283,"path":284,"stem":285,"icon":286},"Hono","\u002Fexamples\u002Fhono","4.examples\u002Fhono","i-logos-hono",{"title":288,"path":289,"stem":290,"icon":291},"导入别名","\u002Fexamples\u002Fimport-alias","4.examples\u002Fimport-alias","i-lucide-at-sign",{"title":293,"path":294,"stem":295,"icon":46},"中间件","\u002Fexamples\u002Fmiddleware","4.examples\u002Fmiddleware",{"title":297,"path":298,"stem":299,"icon":300},"Mono JSX","\u002Fexamples\u002Fmono-jsx","4.examples\u002Fmono-jsx","i-lucide-brackets",{"title":302,"path":303,"stem":304,"icon":300},"Nano JSX","\u002Fexamples\u002Fnano-jsx","4.examples\u002Fnano-jsx",{"title":53,"path":306,"stem":307,"icon":308},"\u002Fexamples\u002Fplugins","4.examples\u002Fplugins","i-lucide-plug",{"title":310,"path":311,"stem":312,"icon":313},"自定义渲染器","\u002Fexamples\u002Frenderer","4.examples\u002Frenderer","i-lucide-code",{"title":315,"path":316,"stem":317,"icon":318},"运行时配置","\u002Fexamples\u002Fruntime-config","4.examples\u002Fruntime-config","i-lucide-settings",{"title":320,"path":321,"stem":322,"icon":323},"服务端 Fetch","\u002Fexamples\u002Fserver-fetch","4.examples\u002Fserver-fetch","i-lucide-arrow-right-left",{"title":325,"path":326,"stem":327,"icon":328},"Shiki","\u002Fexamples\u002Fshiki","4.examples\u002Fshiki","i-lucide-highlighter",{"title":330,"path":331,"stem":332,"icon":333},"虚拟路由","\u002Fexamples\u002Fvirtual-routes","4.examples\u002Fvirtual-routes","i-lucide-box",{"title":335,"path":336,"stem":337,"icon":338},"Vite Nitro 插件","\u002Fexamples\u002Fvite-nitro-plugin","4.examples\u002Fvite-nitro-plugin","i-logos-vitejs",{"title":340,"path":341,"stem":342,"icon":343},"Vite RSC","\u002Fexamples\u002Fvite-rsc","4.examples\u002Fvite-rsc","i-logos-react",{"title":345,"path":346,"stem":347,"icon":348},"Vite SSR HTML","\u002Fexamples\u002Fvite-ssr-html","4.examples\u002Fvite-ssr-html","i-logos-html-5",{"title":350,"path":351,"stem":352,"icon":353},"使用 Preact 进行 SSR","\u002Fexamples\u002Fvite-ssr-preact","4.examples\u002Fvite-ssr-preact","i-logos-preact",{"title":355,"path":356,"stem":357,"icon":343},"使用 React 进行 SSR","\u002Fexamples\u002Fvite-ssr-react","4.examples\u002Fvite-ssr-react",{"title":359,"path":360,"stem":361,"icon":362},"SolidJS 服务端渲染","\u002Fexamples\u002Fvite-ssr-solid","4.examples\u002Fvite-ssr-solid","i-logos-solidjs-icon",{"title":364,"path":365,"stem":366,"icon":367},"使用 TanStack Router 的 SSR","\u002Fexamples\u002Fvite-ssr-tsr-react","4.examples\u002Fvite-ssr-tsr-react","i-simple-icons-tanstack",{"title":369,"path":370,"stem":371,"icon":367},"使用 TanStack Start 进行 SSR","\u002Fexamples\u002Fvite-ssr-tss-react","4.examples\u002Fvite-ssr-tss-react",{"title":373,"path":374,"stem":375,"icon":376},"基于 Vue Router 的 SSR","\u002Fexamples\u002Fvite-ssr-vue-router","4.examples\u002Fvite-ssr-vue-router","i-logos-vue",{"title":378,"path":379,"stem":380,"icon":381},"Vite + tRPC","\u002Fexamples\u002Fvite-trpc","4.examples\u002Fvite-trpc","i-simple-icons-trpc",{"title":63,"path":383,"stem":384,"icon":385},"\u002Fexamples\u002Fwebsocket","4.examples\u002Fwebsocket","i-lucide-radio",{"title":387,"path":388,"stem":389,"children":390},"Blog","\u002Fblog","9.blog",[391,395],{"title":392,"path":388,"stem":393,"icon":394},"博客","9.blog\u002Findex","i-lucide-file-text",{"title":396,"path":397,"stem":398,"icon":394},"Nitro v3 测试版已发布！","\u002Fblog\u002Fv3-beta","9.blog\u002F1.v3-beta",{"title":5,"path":400,"stem":401},"\u002F","index",{"id":403,"title":159,"body":404,"description":505,"extension":506,"meta":507,"navigation":508,"path":160,"seo":509,"stem":161,"__hash__":510},"content\u002F2.deploy\u002F20.providers\u002Fedgeone.md",{"type":405,"value":406,"toc":500},"minimark",[407,419,423,427,481,485,493],[408,409,410,414,415],"p",{},[411,412,413],"strong",{},"预设："," ",[416,417,418],"code",{},"edgeone-pages",[420,421],"read-more",{"to":422},"https:\u002F\u002Fpages.edgeone.ai\u002F",[424,425,426],"h2",{"id":426},"使用控制台",[428,429,431,447,454,464,474],"steps",{"level":430},"4",[432,433,434,435,442,443,446],"h4",{},"在 ",[436,437,441],"a",{"href":438,"rel":439},"https:\u002F\u002Fconsole.tencentcloud.com\u002Fedgeone\u002Fpages",[440],"nofollow","EdgeOne Pages 控制台"," 中，点击 ",[411,444,445],{},"Create project","。",[432,448,449,450,453],{},"选择 ",[411,451,452],{},"Import Git repository"," 作为部署方式。支持从 GitHub、GitLab、Gitee 和 CNB 部署。",[432,455,456,457,460,461,446],{},"选择包含你应用代码的 GitHub ",[411,458,459],{},"repository"," 和 ",[411,462,463],{},"branch",[432,465,466,467,470,471,473],{},"在配置过程中添加环境变量 ",[416,468,469],{},"NITRO_PRESET","，其值为 ",[416,472,418],{},"（这一步很重要）。",[432,475,476,477,480],{},"点击 ",[411,478,479],{},"Deploy"," 按钮。",[424,482,484],{"id":483},"使用-edgeone-cli","使用 EdgeOne CLI",[408,486,487,488,446],{},"你也可以安装 Pages 脚手架工具。安装和使用的详细说明请参见 ",[436,489,492],{"href":490,"rel":491},"https:\u002F\u002Fpages.edgeone.ai\u002Fdocument\u002Fedgeone-cli",[440],"EdgeOne CLI",[408,494,495,496,499],{},"完成配置后，使用 ",[416,497,498],{},"edgeone pages deploy"," 命令即可部署项目。部署过程中，CLI 会先自动构建项目，然后上传并发布构建产物。",{"title":5,"searchDepth":501,"depth":501,"links":502},2,[503,504],{"id":426,"depth":501,"text":426},{"id":483,"depth":501,"text":484},"将 Nitro 应用部署到 EdgeOne Pages。","md",{},{},{"title":159,"description":505},"EJuT4fIX_Xu99X0sXK65vxrXlmBN9YQ6DP51y6SBvS0",[512,514],{"title":155,"path":156,"stem":157,"description":513,"children":-1},"将 Nitro 应用部署到 DigitalOcean。",{"title":163,"path":164,"stem":165,"description":515,"children":-1},"将 Nitro 应用部署到 Firebase。",1777215893360]