Tutorial Tutorial Tutorial Developer Platform Developer Platform Developer Platform ~10 phút ~10 min ~10 នាទី Đồng bộ 2026-06-10 Synced 2026-06-10 ធ្វើសមកាល 2026-06-10

Di chuyển từ Vercel sang Pages Migrating from Vercel to Pages ការធ្វើដំណើរពី Vercel ទៅ Pages

Hướng dẫn chi tiết đồng bộ từ docs Cloudflare — mỗi section có backlink tới đúng vị trí trên trang gốc. Detailed guide synced from Cloudflare docs — each section links to the matching anchor on the official page. មគ្គុទ្ទេសក៍លម្អិតធ្វើសមកាលពី docs Cloudflare — ផ្នែកនីមួយៗមានតំណទៅទីតាំងត្រូវគ្នានៅទំព័រផ្លូវការ។

← Danh mục ← Catalog ← បញ្ជី

Giải thích nhanh Quick context បរិបទរហ័ស

Thuộc Developer Platform — thực hành triển khai code, API và dữ liệu trên edge/serverless. Tutorial «Migrating từ Vercel to Pages» giúp bạn làm quen luồng triển khai thật — phù hợp đọc trước khi mở tài liệu gốc tiếng Anh. Đọc phần tóm tắt và lưu ý trước — sau đó mở docs gốc để copy lệnh và cấu hình chi tiết.

In this tutorial, you will learn how to deploy your Vercel application to Cloudflare Pages.

ក្នុងការបណ្តុះបណ្តាលនេះអ្នកនឹងរៀនពីរបៀបដំឡើងកម្មវិធី Vercel របស់អ្នកទៅ Cloudflare Pages ។

Lưu ý Note ចំណាំ

Lưu ý trước khi làm Notes before you start ចំណាំមុនពេលចាប់ផ្តើម

  • Đây là bản tóm tắt trên Orange Cloud Learning Hub — không thay thế tài liệu chính thức.
  • Luôn mở liên kết «Tài liệu gốc» bên dưới khi cần lệnh CLI, snippet code và ảnh minh họa đầy đủ.
  • Cần tài khoản Cloudflare, Wrangler CLI và (thường) hoàn thành hướng dẫn Get started của Workers/Pages.
  • Docs Cloudflare cập nhật thường xuyên — đối chiếu ngày «Rà soát lần cuối» trên trang gốc khi triển khai production.
  • This is a summary on Orange Cloud Learning Hub — it does not replace the official documentation.
  • Open the Official docs link below for CLI commands, code snippets, and full screenshots.
  • Requires a Cloudflare account, Wrangler CLI, and (typically) completing the Workers/Pages Get started guide.
  • Cloudflare docs change frequently — verify the Last reviewed date on the official page before production use.
  • នេះគឺជាការបញ្ជាក់អំពី Orange Cloud Learning Hub — វាគឺជាការផ្លាស់ប្តូរនៃឯកសារផ្លូវការ។
  • ចុចតំណភ្ជាប់ Docs Official នៅខាងក្រោមសម្រាប់ការបញ្ជា CLI, សៀវភៅកូដនិងរូបថតពេញលេញ។
  • តម្រូវឱ្យមានគណនី Cloudflare, Wrangler CLI និង (ប្រហែលជា) ការបញ្ចប់គណនី Workers/Pages Get started ។
  • Cloudflare បានផ្លាស់ប្តូរជាធម្មតានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅ។

Tài liệu gốc — rà soát lần cuối: about 1 year ago Official docs — last reviewed: about 1 year ago ឯកសារផ្លូវការ — ពិនិត្យចុងក្រោយ: about 1 year ago

Overview Overview Overview

Trong tutorial này, bạn sẽ deploy your Vercel application to Cloudflare Pages.

Read the "Overview" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «Overview» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Trong hướng dẫn này, bạn sẽ học cách triển khai ứng dụng Vercel của mình để Cloudflare Pages.
In this tutorial, you will learn how to deploy your Vercel application to Cloudflare Pages.
ក្នុងការបណ្តុះបណ្តាលនេះអ្នកនឹងរៀនពីរបៀបដំឡើងកម្មវិធី Vercel របស់អ្នកទៅ Cloudflare Pages ។
Bạn nên đã có một dự án hiện có được triển khai trên Vercel mà bạn muốn lưu trữ trên Cloudflare Pages. Các tính năng như chức năng không máy chủ của Vercel hiện không được hỗ trợ trong Cloudflare Pages.
You should already have an existing project deployed on Vercel that you would like to host on Cloudflare Pages. Features such as Vercel's serverless functions are currently not supported in Cloudflare Pages.
អ្នកគួរតែមានគម្រោងដែលមាននៅលើ Vercel ដែលអ្នកចង់រៀបចំនៅ Cloudflare Pages ។ ឧបករណ៍ដូចជាឧបករណ៍ដោយឥតគិតថ្លៃរបស់ Vercel មិនត្រូវបានគាំទ្រនៅ Cloudflare Pages ឥឡូវនេះ។

Tìm lệnh build và xây dựng thư mục Find your build command and build directory សូមស្វែងរកគោលបំណង build និង build directory របស់អ្នក

Phần «Find your build command và build directory» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Find your build command and build directory" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «សូមស្វែងរកគោលបំណង build និង build directory របស់អ្នក» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Để di chuyển ứng dụng của bạn đến Cloudflare Pages, bạn sẽ cần phải tìm lệnh xây dựng và thư mục xây dựng của bạn. Cloudflare Pages sẽ sử dụng thông tin này để xây dựng ứng dụng của bạn và triển khai nó.
To move your application to Cloudflare Pages, you will need to find your build command and build directory. Cloudflare Pages will use this information to build your application and deploy it.
ដើម្បីផ្លាស់ប្តូរកម្មវិធីរបស់អ្នកទៅ Cloudflare Pages, អ្នកនឹងត្រូវតែស្វែងរកគោលបំណងសាងសង់និងគណនីសាងសង់របស់អ្នក។ Cloudflare Pages នឹងប្រើព័ត៌មាននេះដើម្បីបង្កើតកម្មវិធីរបស់អ្នកនិងដំឡើងវា។
Trong bảng điều khiển Vercel của bạn, tìm dự án bạn muốn triển khai. Nó nên được cấu hình để triển khai từ một kho lưu trữ GitHub.
In your Vercel Dashboard, find the project that you want to deploy. It should be configured to deploy from a GitHub repository.
នៅលើ Vercel Dashboard របស់អ្នកស្វែងរកគម្រោងដែលអ្នកចង់ដំឡើង។ វាត្រូវបានកំណត់ដើម្បីដំឡើងពី repo GitHub ។
Bên trong bảng điều khiển trang web của bạn, chọn Settings, sau đó chọn General.
Inside of your site dashboard, select Settings, then General.
នៅខាងក្នុងប្រព័ន្ធប្រតិបត្តិការរបស់គេហទំព័ររបស់អ្នក, ជ្រើស Settings, បន្ទាប់មក General.
Tìm bảng Build & Development settings, trong đó sẽ có trường Build Command và Output Directory. Nếu bạn đang sử dụng một framework, các giá trị này có thể không được điền vào, nhưng sẽ hiển thị các mặc định được sử dụng bởi framework. Lưu chúng để triển khai đến Cloudflare Pages. Trong hình dưới đây, Build Command là npm run build, và Output Directory là build.
Find the Build & Development settings panel, which will have the Build Command and Output Directory fields. If you are using a framework, these values may not be filled in, but will show the defaults used by the framework. Save these for deploying to Cloudflare Pages. In the below image, the Build Command is npm run build, and the Output Directory is build.
សូមស្វែងរកបណ្តាញ Build & Development settings ដែលនឹងមានបណ្តាញ Build Command និង Output Directory ។ ប្រសិនបើអ្នកកំពុងប្រើគំនិតគំនិតគំនិតគំនិតគំនិតគំនិតគំនិតគំនិតគំនិតគំនិតគំនិតគំនិតគំនិតគំនិតគំនិតគំនិតគំនិតគំនិតគំនិតគំនិតគំនិតគំនិត។ ការសរសេរទាំងនេះដើម្បីដំឡើងទៅ Cloudflare Pages ។ ក្នុងរូបថតខាងក្រោម Build Command គឺជា npm run build និង Output Directory គឺជា build ។

Tạo dự án mới Pages Create a new Pages project បង្កើតគម្រោងថ្មី Pages

Phần «Tạo Pages dự án mới» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Create a new Pages project" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «បង្កើតគម្រោងថ្មី Pages» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Sau khi bạn tìm thấy thư mục xây dựng và lệnh xây dựng, bạn có thể di chuyển dự án của bạn đến Cloudflare Pages.
After you have found your build directory and build command, you can move your project to Cloudflare Pages.
បន្ទាប់ពីអ្នកបានរកឃើញប្រកាសកំណត់រចនាសម្ព័ន្ធរបស់អ្នកនិងប្រកាសកំណត់រចនាសម្ព័ន្ធអ្នកអាចផ្លាស់ប្តូរគម្រោងរបស់អ្នកទៅ Cloudflare Pages ។
Get started guide sẽ hướng dẫn bạn cách thêm dự án GitHub vào Cloudflare Pages.
The Get started guide will instruct you how to add your GitHub project to Cloudflare Pages.
Get started guide នឹងបង្ហាញអ្នកពីរបៀបដើម្បីបន្ថែមគម្រោង GitHub របស់អ្នកទៅ Cloudflare Pages ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Thêm một custom domain Add a custom domain លក្ខណៈពិសេស Custom Domain

Phần «Thêm custom domain» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Add a custom domain" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «លក្ខណៈពិសេស Custom Domain» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Tiếp theo, kết nối custom domain với dự án Pages của bạn. Tên miền này nên giống với ứng dụng Vercel hiện đang được triển khai của bạn.
Next, connect a custom domain to your Pages project. This domain should be the same one as your currently deployed Vercel application.
បន្ទាប់មកទាក់ទង custom domain ជាមួយគម្រោងរបស់អ្នក Pages ។ វាត្រូវបានធ្វើឱ្យប្រសិនបើវាត្រូវបានធ្វើឱ្យប្រសិនបើវាត្រូវបានធ្វើឱ្យប្រសិនបើវាត្រូវបានធ្វើឱ្យប្រសិនបើវាត្រូវបានធ្វើឱ្យប្រសិនបើវាត្រូវបានធ្វើឡើង។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Thay đổi tên miền Change domain nameservers ប្រព័ន្ធ ប្រតិបត្តិការ Domain Name Server

Phần «Change domain nameservers» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Change domain nameservers" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ប្រព័ន្ធ ប្រតិបត្តិការ Domain Name Server» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Trong hầu hết các trường hợp, bạn sẽ muốn add your domain to Cloudflare.
In most cases, you will want to add your domain to Cloudflare.
ក្នុងករណីភាគច្រើនអ្នកនឹងចង់ add your domain to Cloudflare ។
Điều này liên quan đến việc thay đổi máy chủ tên miền của bạn, nhưng đơn giản hóa thiết lập Pages của bạn và cho phép bạn sử dụng một tên miền đỉnh cao cho dự án của bạn (như example.com).
This does involve changing your domain nameservers, but simplifies your Pages setup and allows you to use an apex domain for your project (like example.com).
នេះមានន័យថាមានការផ្លាស់ប្តូរអេឡិចត្រូនិអេឡិចត្រូនិរបស់អ្នកទេប៉ុន្តែធ្វើឱ្យការផ្លាស់ប្តូរ Pages របស់អ្នកងាយស្រួលនិងអនុញ្ញាតឱ្យអ្នកប្រើអេឡិចត្រូនិអេឡិចត្រូនិអេឡិចត្រូនិសម្រាប់គម្រោងរបស់អ្នក (ដូចជា example.com) ។
Nếu bạn muốn có một cách tiếp cận khác, hãy đọc thêm về custom domains.
If you want to take a different approach, read more about custom domains.
ប្រសិនបើអ្នកចង់ទទួលបានវិធីសាស្រ្តផ្សេងទៀតសូមអានបន្ថែមអំពី custom domains ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Tạo custom domain Set up custom domain ទាញយក Custom Domain

Phần «Thiết lập custom domain» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Set up custom domain" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ទាញយក Custom Domain» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Để thêm domain custom:
To add a custom domain:
ដើម្បីបន្ថែមអាសយដ្ឋាន Custom:
  1. Trong bảng điều khiển Cloudflare, đi đến trang Workers & Pages.
  1. In the Cloudflare dashboard, go to the Workers & Pages page.
  1. ក្នុងប្រព័ន្ធប្រតិបត្តិការ Cloudflare សូមចូលទៅក្នុងទំព័រ Workers & Pages ។
  1. Chọn dự án của bạn Pages > Custom domains.
  2. Chọn Set up a domain
  3. Cung cấp tên miền mà bạn muốn phục vụ trang web của bạn Cloudflare Pages và chọn Continue.
  1. Select your Pages project > Custom domains.
  2. Select Set up a domain.
  3. Provide the domain that you would like to serve your Cloudflare Pages site on and select Continue.
  1. ជ្រើសកម្មវិធីរបស់អ្នក Pages > Custom domains ។
  2. សូមជ្រើស Set up a domain ។
  3. សូមផ្តល់នូវតំបន់បណ្ដាញដែលអ្នកចង់ផ្គត់ផ្គង់ Cloudflare Pages របស់អ្នកហើយជ្រើស Continue ។
Các bước sau đây thay đổi tùy thuộc vào việc bạn added your domain to Cloudflare:
The next steps vary based on if you added your domain to Cloudflare:
ជំហានខាងក្រោមត្រូវបានផ្លាស់ប្តូរដោយបើយោងតាម added your domain to Cloudflare:
  • Added to Cloudflare: Cloudflare sẽ tự động thiết lập mọi thứ cho bạn và miền của bạn sẽ chuyển sang trạng thái Active.
  • Not added to Cloudflare: Bạn cần phải update some DNS records tại nhà cung cấp của bạn DNS để hoàn thành thiết lập của bạn.
  • Added to Cloudflare: Cloudflare will set everything up for you automatically and your domain will move to an Active status.
  • Not added to Cloudflare: You need to update some DNS records at your DNS provider to finish your setup.
  • Added to Cloudflare: Cloudflare នឹងកំណត់ទាំងអស់សម្រាប់អ្នកដោយស្វ័យប្រវត្តិហើយអាសយដ្ឋានរបស់អ្នកនឹងផ្លាស់ប្តូរទៅ Active ។
  • Not added to Cloudflare: អ្នកត្រូវការ update some DNS records នៅលើក្រុមហ៊ុនផ្គត់ផ្គង់របស់អ្នក DNS ដើម្បីបញ្ចប់ការដំឡើងរបស់អ្នក។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Xóa ứng dụng Vercel của bạn Delete your Vercel app បញ្ចូលកម្មវិធី Vercel របស់អ្នក

Phần «Xó your Vercel app» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Delete your Vercel app" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «បញ្ចូលកម្មវិធី Vercel របស់អ្នក» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Một khi tên miền tùy chỉnh của bạn được thiết lập và gửi yêu cầu đến Cloudflare Pages, bạn có thể xóa ứng dụng Vercel của mình một cách an toàn.
Once your custom domain is set up and sending requests to Cloudflare Pages, you can safely delete your Vercel application.
បន្ទាប់ពីគេហទំព័ររបស់អ្នកត្រូវបានកំណត់និងការផ្ញើសំណួរទៅ Cloudflare Pages អ្នកអាចជួសជុលកម្មវិធី Vercel របស់អ្នកដោយសុវត្ថិភាព។

Rắc rối Troubleshooting ដំបូង

Phần «Xử lý sự cố» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Troubleshooting" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ដំបូង» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Cloudflare không cung cấp địa chỉ IP cho dự án Pages của bạn vì chúng tôi không yêu cầu A hoặc AAAA bản ghi để liên kết miền của bạn với dự án của bạn. Thay vào đó, Cloudflare sử dụng bản ghi CNAME.
Cloudflare does not provide IP addresses for your Pages project because we do not require A or AAAA records to link your domain to your project. Instead, Cloudflare uses CNAME records.
Cloudflare មិនផ្តល់អាសយដ្ឋាន IP សម្រាប់គម្រោងរបស់អ្នក Pages ដោយសារតែយើងមិនចាំបាច់ទិន្នន័យ A ឬ AAAA ដើម្បីភ្ជាប់អាសយដ្ឋានរបស់អ្នកជាមួយគម្រោងរបស់អ្នក។ ទោះជាយ៉ាងណាក៏ដោយ Cloudflare បានប្រើ CNAME កុំព្យូទ័រ។
Để biết thêm chi tiết, hãy tham khảo Custom domains.
For more details, refer to Custom domains.
សម្រាប់ព័ត៌មានបន្ថែមសូមមើល Custom domains ។
json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/pages/","name":"Pages"}},{"@type":"ListItem","position":3,"item":{"@id":"/pages/migrations/","name":"Migration guides"}},{"@type":"ListItem","position":4,"item":{"@id":"/pages/migrations/migrating-from-vercel/","name":"Migrating from Vercel to Pages"}}]}

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Xem bản đầy đủ trên developers.cloudflare.com (ảnh, tab cấu hình). View the full guide on developers.cloudflare.com (images, config tabs). មើលមគ្គុទ្ទេសក៍ពេញលើ developers.cloudflare.com (រូបភាព, tab កំណត់)។

Tài liệu gốc ↗ Official docs ↗ ឯកសារផ្លូវការ ↗