[{"data":1,"prerenderedAt":586},["ShallowReactive",2],{"wiki-page-/en-us/wiki/2025-07-01-nuxt-js-wang-zhan-kuang-jia/ch2-bu-shu-fang-an":3,"wiki-doc-items-/en-us/wiki/2025-07-01-nuxt-js-wang-zhan-kuang-jia/ch2-bu-shu-fang-an":558,"language-switcher-data-/en-us/wiki/2025-07-01-nuxt-js-wang-zhan-kuang-jia/ch2-bu-shu-fang-an":570,"wiki-i18n-paths-/en-us/wiki/2025-07-01-nuxt-js-wang-zhan-kuang-jia/ch2-bu-shu-fang-an":585},{"id":4,"title":5,"body":6,"canonicalPath":539,"chapter":540,"chapterSort":541,"date":542,"description":251,"docI18nKey":543,"docKey":544,"docRoot":545,"docTitle":546,"extension":547,"i18nKey":548,"isBlogPost":549,"isWikiDoc":488,"isWikiIndex":549,"layout":550,"legacyPath":550,"locale":551,"localeSlug":552,"meta":553,"navigation":488,"path":539,"seo":554,"sourcePath":555,"sourceStem":548,"stem":556,"wikiDepth":485,"__hash__":557},"content/_i18n/en-us/wiki/2025-07-01-Nuxt.js网站框架/ch2-部署方案.md","Deployment plan",{"type":7,"value":8,"toc":534},"minimark",[9,14,18,21,24,31,34,127,131,134,137,140,143,146,211,215,220,240,243,246,253,262,265,268,273,282,285,288,293,302,305,308,313,322,325,328,333,337,347,350,353,358,368,371,374,379,387,390,393,398,406,411,414,416,420,425,430,435,440,445,450,455,460,465,470,473,521,530],[10,11,13],"h3",{"id":12},"introduction-to-the-static-website-hosting-service-pages","Introduction to the Static Website Hosting Service Pages",[15,16,17],"p",{},"Commonly used Pages include GitHub Pages, Cloudflare Pages, and Tencent Cloud EdgeOne Pages.",[15,19,20],{},"Generally speaking, GitHub Pages has low bandwidth and unstable access within China, so it's usually not recommended.",[15,22,23],{},"Cloudflare Pages has high-speed servers globally (excluding mainland China 🇨🇳), so access is very fast worldwide (excluding mainland China 🇨🇳), with latency typically within 1–5ms. The downside is that performance in mainland China 🇨🇳 can be unstable.",[15,25,26,27],{},"Tencent Cloud Edge One Pages servers are primarily located in China (Mainland China 🇨🇳, Hong Kong, Macau, and Taiwan 🇭🇰🇲🇴🇨🇳) as well as in several major countries abroad. However, the downside is that you may need to file for domain registration in China, which requires purchasing a server and other items, making the cost quite high. ",[28,29,30],"strong",{},"(Tencent Cloud Pages comes with its own CDN, so there's no need to add another layer of CDN.)",[15,32,33],{},"It is said that Alibaba Cloud (Alibaba Cloud ESA Pages) is also working overtime to copy Cloudflare and Tencent Cloud EO, in order to counter Tencent Cloud EdgeOne Pages. It's unclear when it will be released, but hopefully it will also come with a free tier.",[35,36,37,60],"table",{},[38,39,40],"thead",{},[41,42,43,48,51,54,57],"tr",{},[44,45,47],"th",{"align":46},"left","platform",[44,49,50],{"align":46},"Key Features",[44,52,53],{"align":46},"cost",[44,55,56],{"align":46},"Advantage",[44,58,59],{"align":46},"Disadvantages",[61,62,63,81,97,114],"tbody",{},[41,64,65,69,72,75,78],{},[66,67,68],"td",{"align":46},"GitHub Pages",[66,70,71],{"align":46},"Host a static website",[66,73,74],{"align":46},"Free",[66,76,77],{"align":46},"Tightly integrated with GitHub repositories, making automated builds convenient.",[66,79,80],{"align":46},"Bandwidth is low, and access within mainland China is extremely unstable.",[41,82,83,86,89,91,94],{},[66,84,85],{"align":46},"Cloudflare Pages",[66,87,88],{"align":46},"Global high-performance servers (excluding mainland China)",[66,90,74],{"align":46},[66,92,93],{"align":46},"Extremely fast global access, with latency typically only 1–5 ms; supports custom domains and CI/CD integration.",[66,95,96],{"align":46},"The access speed from mainland China is unstable.",[41,98,99,102,105,108,111],{},[66,100,101],{"align":46},"Tencent Cloud EdgeOne Pages",[66,103,104],{"align":46},"The servers cover major nodes in mainland China, Hong Kong, Macau, Taiwan, and overseas regions.",[66,106,107],{"align":46},"There is a free quota.",[66,109,110],{"align":46},"Excellent access speed for domestic users; supports EO CDN integrated acceleration; generous free tier.",[66,112,113],{"align":46},"If targeting mainland Chinese users, ICP filing is required. The filing process is complex and may necessitate purchasing a domestic server.",[41,115,116,119,121,123,125],{},[66,117,118],{"align":46},"Alibaba Cloud ESA Pages",[66,120,104],{"align":46},[66,122],{"align":46},[66,124],{"align":46},[66,126],{"align":46},[10,128,130],{"id":129},"introduction-to-content-delivery-network-cdn","Introduction to Content Delivery Network (CDN)",[15,132,133],{},"A CDN (Content Delivery Network) dramatically improves access speed and reduces origin server load by deploying cache nodes around the world, allowing users to load content from the nearest server.",[15,135,136],{},"Commonly used CDNs include Cloudflare CDN, Tencent Cloud EO CDN, Alibaba Cloud CDN, and others.",[15,138,139],{},"Cloudflare CDN has high-speed servers worldwide (excluding mainland China 🇨🇳), so access is relatively fast globally (excluding mainland China 🇨🇳). The downside is that performance can be unstable within mainland China.",[15,141,142],{},"Tencent Cloud Edge One CDN servers are primarily located in China (Mainland China 🇨🇳, Hong Kong, Macau, and Taiwan 🇭🇰🇲🇴🇨🇳) and in several major countries abroad. If you want to accelerate content for users in Mainland China 🇨🇳, you need to file for ICP registration, which comes with high costs. However, you can choose not to accelerate for Mainland China 🇨🇳 users. In that case, because Tencent Cloud's CDN in Hong Kong 🇭🇰 is of excellent quality, access speeds within China are still quite decent. Most importantly, there is currently a free quota available, which is more than sufficient for ordinary users.",[15,144,145],{},"Alibaba Cloud ESA CDN has a similar positioning to Tencent Cloud EO, but it's a product hastily imitated to counter Tencent Cloud EO. For now, it's far less user-friendly than Cloudflare and Tencent Cloud EO.",[35,147,148,163],{},[38,149,150],{},[41,151,152,154,157,159,161],{},[44,153,47],{"align":46},[44,155,156],{"align":46},"Node Distribution",[44,158,53],{"align":46},[44,160,56],{"align":46},[44,162,59],{"align":46},[61,164,165,181,197],{},[41,166,167,170,173,175,178],{},[66,168,169],{"align":46},"Cloudflare CDN",[66,171,172],{"align":46},"Free global high-speed nodes (excluding mainland China)",[66,174,74],{"align":46},[66,176,177],{"align":46},"Excellent performance, easy configuration, and broad global coverage.",[66,179,180],{"align":46},"The access speed in mainland China fluctuates significantly.",[41,182,183,186,189,191,194],{},[66,184,185],{"align":46},"Tencent Cloud EdgeOne CDN",[66,187,188],{"align":46},"Main nodes in Mainland China, Hong Kong, Macau, Taiwan, and overseas",[66,190,107],{"align":46},[66,192,193],{"align":46},"Balanced access speeds for domestic and international users; high-quality Hong Kong nodes; free quota provided.",[66,195,196],{"align":46},"If mainland acceleration is enabled, it requires ICP filing, which is costly.",[41,198,199,202,204,206,208],{},[66,200,201],{"align":46},"Alibaba Cloud ESA",[66,203,188],{"align":46},[66,205,107],{"align":46},[66,207,193],{"align":46},[66,209,210],{"align":46},"If mainland China acceleration is enabled, it requires ICP filing and the cost is relatively high. Additionally, the product is not yet as comprehensive as Tencent Cloud EO.",[10,212,214],{"id":213},"matching-scheme","Matching scheme",[216,217,219],"h4",{"id":218},"free-plan","Free plan",[221,222,223],"ol",{},[224,225,226,234,237],"li",{},[28,227,228,229,233],{},"Completely Free Option 1 ",[230,231,232],"span",{},"Cloudflare Pages + Tencent Cloud EO CDN (Global acceleration, but not for Mainland China)",":",[235,236],"br",{},[28,238,239],{},"(This option is more than sufficient for ordinary users, highly recommended.)",[15,241,242],{},"In mainland China 🇨🇳, the average is 150ms, while in Hong Kong 🇭🇰, the average is 2ms.",[15,244,245],{},"This is because Cloudflare has high-speed servers globally (excluding mainland China 🇨🇳), and Tencent Cloud CDN also has high-speed CDN in Hong Kong 🇭🇰, so access from mainland China is relatively fast and fully sufficient — and the best part is that it's completely free.",[15,247,248],{},[249,250],"img",{"alt":251,"src":252},"","https://cdn.tungchiahui.cn/tungwebsite/assets/images/2025/07/01/image1.webp",[221,254,256],{"start":255},2,[224,257,258,259,233],{},"Pure free solution #2 ",[230,260,261],{},"Cloudflare Pages + Alibaba Cloud ESA CDN (accelerates globally, but does not accelerate mainland China)",[15,263,264],{},"In mainland China 🇨🇳, the average is 240ms; in Hong Kong 🇭🇰, the average is 2ms.",[15,266,267],{},"This is because Cloudflare has high-speed servers globally (excluding mainland China 🇨🇳), and Alibaba Cloud CDN also has high-speed CDN in Hong Kong 🇭🇰. However, it currently doesn't seem to be as good as Tencent's, so it's much worse than Tencent's.",[15,269,270],{},[249,271],{"alt":251,"src":272},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2025/07/01/image2.webp",[221,274,276],{"start":275},3,[224,277,278,279,233],{},"Pure free solution three ",[230,280,281],{},"Tencent Cloud EO Pages + Tencent Cloud EO CDN (accelerates globally, but does not accelerate Mainland China)",[15,283,284],{},"In mainland China 🇨🇳, the average is 230ms; in Hong Kong 🇭🇰, the average is 2ms.",[15,286,287],{},"The reason it's not as good as Option 1 is that Tencent Cloud only has servers in major countries, while Cloudflare has high-speed servers worldwide (excluding mainland China 🇨🇳), so it's not as fast as Cloudflare.",[15,289,290],{},[249,291],{"alt":251,"src":292},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2025/07/01/image3.webp",[221,294,296],{"start":295},4,[224,297,298,299,233],{},"Pure free solution four ",[230,300,301],{},"Cloudflare Pages + Cloudflare CDN (global acceleration)",[15,303,304],{},"In mainland China 🇨🇳, the average is around 180ms, but some provinces (such as Jiangsu Province) experience abnormal access. In Hong Kong 🇭🇰 and Taiwan 🇨🇳, the average is 0–2ms.",[15,306,307],{},"This is because Cloudflare's CDN tends to be unstable in mainland China 🇨🇳, which is why it doesn't work very well.",[15,309,310],{},[249,311],{"alt":251,"src":312},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2025/07/01/image4.webp",[221,314,316],{"start":315},5,[224,317,318,319,233],{},"Pure free solution five ",[230,320,321],{},"Github Pages",[15,323,324],{},"In mainland China 🇨🇳, the average is 100ms, while in Hong Kong 🇭🇰, the average is 51ms.",[15,326,327],{},"The latency doesn't seem too bad, and it's not half-blocked like Cloudflare, but the bandwidth is actually terrible—loading a single image is painfully slow. This is the least recommended option. (Even Hong Kong 🇭🇰, which usually has 2ms latency on any setup, jumps to 50+ms here, which shows just how bad it is.)",[15,329,330],{},[249,331],{"alt":251,"src":332},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2025/07/01/image5.webp",[216,334,336],{"id":335},"paid-plan","Paid plan",[221,338,339],{},[224,340,341],{},[28,342,343,344,233],{},"Paid Plan 1 ",[230,345,346],{},"Tencent Cloud EO Pages + Tencent Cloud EO CDN (Global Acceleration, Including Mainland China)",[15,348,349],{},"In mainland China 🇨🇳, the average is 16ms, while in Hong Kong 🇭🇰, the average is 2ms.",[15,351,352],{},"The only costs are for the domain name and filing, which aren't that high either—Pages and CDN are both free.",[15,354,355],{},[249,356],{"alt":251,"src":357},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2025/07/01/image6.webp",[221,359,360],{"start":255},[224,361,362],{},[28,363,364,365,233],{},"Paid Plan 2 ",[230,366,367],{},"Alibaba Cloud ESA Pages + Alibaba Cloud ESA CDN (Global Acceleration, Including Mainland China)",[15,369,370],{},"In mainland China 🇨🇳, the average is 12ms; in Hong Kong 🇭🇰, the average is 2ms; and in Taiwan 🇨🇳, the average is 4ms.",[15,372,373],{},"The cost is really just for the domain name and filing, and it's not that high—Pages and CDN are both free for now.",[15,375,376],{},[249,377],{"alt":251,"src":378},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2025/07/01/image7.webp",[221,380,381],{"start":275},[224,382,383,384,233],{},"Paid Plan Three ",[230,385,386],{},"Cloudflare Pages + Tencent Cloud EO CDN (Global Acceleration, Including Mainland China)",[15,388,389],{},"In mainland China 🇨🇳, the average is 10ms; in Hong Kong 🇭🇰, the average is 2ms; and in Taiwan 🇨🇳, the average is 20ms.",[15,391,392],{},"Because Cloudflare servers are located in Hong Kong 🇭🇰, Taiwan 🇨🇳, Japan 🇯🇵, and other regions, while Tencent Cloud CDN uses mainland China 🇨🇳 CDN, this allows Tencent's high-speed CDN to first fetch content from Cloudflare's fast servers, and then distribute it to users in mainland China, which is still very fast.",[15,394,395],{},[249,396],{"alt":251,"src":397},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2025/07/01/image8.webp",[221,399,400],{"start":295},[224,401,402,403,233],{},"Paid Plan 4 ",[230,404,405],{},"Cloudflare Pages + Alibaba Cloud ESA CDN (Global acceleration, including Mainland China)",[15,407,408],{},[249,409],{"alt":251,"src":410},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2025/07/01/image9.webp",[15,412,413],{},"In mainland China 🇨🇳, the average is 10ms; in Hong Kong 🇭🇰, the average is 2ms; and in Taiwan 🇨🇳, the average is 4ms.",[15,415,392],{},[216,417,419],{"id":418},"solution-showcase","Solution Showcase",[221,421,422],{},[224,423,424],{},"Tencent EO Pages + Tencent EO CDN",[15,426,427],{},[249,428],{"alt":251,"src":429},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2025/07/01/image10.webp",[221,431,432],{"start":255},[224,433,434],{},"Alibaba Cloud ESA Pages + Alibaba Cloud ESA CDN",[15,436,437],{},[249,438],{"alt":251,"src":439},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2025/07/01/image11.webp",[221,441,442],{"start":275},[224,443,444],{},"Cloudflare Pages + Tencent EO CDN",[15,446,447],{},[249,448],{"alt":251,"src":449},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2025/07/01/image12.webp",[221,451,452],{"start":295},[224,453,454],{},"Cloudflare Pages + Alibaba Cloud ESA CDN",[15,456,457],{},[249,458],{"alt":251,"src":459},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2025/07/01/image13.webp",[15,461,462],{},[249,463],{"alt":251,"src":464},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2025/07/01/image14.webp",[15,466,467],{},[249,468],{"alt":251,"src":469},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2025/07/01/image15.webp",[15,471,472],{},"Force the browser to refresh the cache.",[474,475,479],"pre",{"className":476,"code":477,"language":478,"meta":251,"style":251},"language-Bash shiki shiki-themes github-light github-dark","\n# Chrome/Edge 强制刷新组合键\nCtrl + Shift + R (Windows/Linux)\nCmd + Shift + R (Mac)\n\n# Firefox 额外步骤\nabout:config → 搜索 \"browser.cache.disk.enable\" → 设为 false → 刷新\n","Bash",[480,481,482,490,495,500,505,509,515],"code",{"__ignoreMap":251},[230,483,486],{"class":484,"line":485},"line",1,[230,487,489],{"emptyLinePlaceholder":488},true,"\n",[230,491,492],{"class":484,"line":255},[230,493,494],{},"# Chrome/Edge 强制刷新组合键\n",[230,496,497],{"class":484,"line":275},[230,498,499],{},"Ctrl + Shift + R (Windows/Linux)\n",[230,501,502],{"class":484,"line":295},[230,503,504],{},"Cmd + Shift + R (Mac)\n",[230,506,507],{"class":484,"line":315},[230,508,489],{"emptyLinePlaceholder":488},[230,510,512],{"class":484,"line":511},6,[230,513,514],{},"# Firefox 额外步骤\n",[230,516,518],{"class":484,"line":517},7,[230,519,520],{},"about:config → 搜索 \"browser.cache.disk.enable\" → 设为 false → 刷新\n",[474,522,524],{"className":476,"code":523,"language":478,"meta":251,"style":251},"npm run dev\n",[480,525,526],{"__ignoreMap":251},[230,527,528],{"class":484,"line":485},[230,529,523],{},[531,532,533],"style",{},"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":251,"searchDepth":255,"depth":255,"links":535},[536,537,538],{"id":12,"depth":275,"text":13},{"id":129,"depth":275,"text":130},{"id":213,"depth":275,"text":214},"/en-us/wiki/2025-07-01-nuxt-js-wang-zhan-kuang-jia/ch2-bu-shu-fang-an","2",2000000,"2025-07-01","wiki/2025-07-01-nuxt-js-wang-zhan-kuang-jia","en-us:2025-07-01-nuxt-js-wang-zhan-kuang-jia","/en-us/wiki/2025-07-01-nuxt-js-wang-zhan-kuang-jia","Nuxt.Js网站框架","md","wiki/2025-07-01-Nuxt.js网站框架/ch2-部署方案",false,null,"en-US","en-us",{},{"title":5,"description":251},"/wiki/2025-07-01-nuxt-js-wang-zhan-kuang-jia/ch2-bu-shu-fang-an","_i18n/en-us/wiki/2025-07-01-Nuxt.js网站框架/ch2-部署方案","ZTTThhiSePqjzsNQRMc0jPlaEXPZJxRsqvETGHMaH6Y",[559,565,566],{"path":560,"stem":561,"title":562,"date":542,"chapter":563,"chapterSort":564,"docKey":544,"docRoot":545,"docTitle":546,"isWikiDoc":488,"isWikiIndex":549},"/en-us/wiki/2025-07-01-nuxt-js-wang-zhan-kuang-jia/ch1-jian-jie","_i18n/en-us/wiki/2025-07-01-Nuxt.js网站框架/ch1-简介","Introduction","1",1000000,{"path":539,"stem":556,"title":5,"date":542,"chapter":540,"chapterSort":541,"docKey":544,"docRoot":545,"docTitle":546,"isWikiDoc":488,"isWikiIndex":549},{"path":545,"stem":567,"title":568,"date":542,"chapter":550,"chapterSort":569,"docKey":544,"docRoot":545,"docTitle":546,"isWikiDoc":488,"isWikiIndex":488},"_i18n/en-us/wiki/2025-07-01-Nuxt.js网站框架/index","Nuxt.js website framework",0,{"variants":571},[572,573,576,579,582],{"path":539,"localeSlug":552,"i18nKey":548},{"path":574,"localeSlug":575,"i18nKey":548},"/zh-hant/wiki/2025-07-01-nuxt-js-wang-zhan-kuang-jia/ch2-bu-shu-fang-an","zh-hant",{"path":577,"localeSlug":578,"i18nKey":548},"/zh-hk/wiki/2025-07-01-nuxt-js-wang-zhan-kuang-jia/ch2-bu-shu-fang-an","zh-hk",{"path":580,"localeSlug":581,"i18nKey":548},"/zh-tw/wiki/2025-07-01-nuxt-js-wang-zhan-kuang-jia/ch2-bu-shu-fang-an","zh-tw",{"path":583,"localeSlug":584,"i18nKey":548},"/zh-cn/wiki/2025-07-01-nuxt-js-wang-zhan-kuang-jia/ch2-bu-shu-fang-an","zh-cn",[539,555,574,555,577,555,580,555,583,555],1780673973032]