GoDaddy Trợ giúp

Chúng tôi đã cố hết sức để dịch trang này cho bạn. Trang Tiếng Anh cũng có khả dụng.

What is Node.js Hosting?

Find answers to common questions about how Node.js Hosting works, what it costs and what your app needs to deploy.

If you require:

Chọn một câu hỏi để xem câu trả lời:

How does Node.js Hosting work?

With Node.js Hosting, you can connect to GitHub or upload a zip file. You don't need to set up Docker containers or install CLI tools. This can help if you built your app with an AI coding assistant and want a simple way to publish it.

Về đầu trang

What type of apps can I host on Node.js Hosting?

Node.js Hosting supports most Node.js apps, static websites and single-page apps, including apps built with AI coding assistants. Frameworks that work with Node.js Hosting include React, Vue, Next.js, Remix, Express, Fastify and Nest.

Về đầu trang

How is Node.js Hosting different from other hosting services?

Many hosting services require you to use CLI tools, set environment variables, work with containers and manage complex configuration. With Node.js Hosting, you can upload your app with drag and drop or deploy it from Git. You can also test it in a free preview before you pay.

Về đầu trang

How much does Node.js Hosting cost?

You can create a limited number of preview apps for free. Preview apps are removed automatically after 30 days. To publish an app, upgrade to Pro.

Về đầu trang

Is Node.js Hosting secure?

Yes. We automatically scan every deployment for malware and vulnerabilities, and check it against security best practices.

Về đầu trang

Can I migrate my app from another hosting provider?

Yes. Export your app files from your current provider and upload them to Node.js Hosting. Test your app in the free preview first, then upgrade to Pro when you're ready to publish.

Về đầu trang

Can I connect my existing domain to Node.js Hosting?

Yes. After you upload your app, you can change its domain in Settings.

Về đầu trang

What are the requirements for my app?

Các yêu cầu quan trọng để ứng dụng của bạn có thể triển khai được bao gồm:

  • Tập tin Package.json : Phải tồn tại ở cấp cao nhất của dự án, với tên, phiên bản và tệp chính không để trống.
  • Xây dựng tập lệnh : Luôn được xác định. Nếu không có gì cần biên dịch, hãy sử dụng "build": "echo build". Các khung công tác cần một lệnh dựng thực sự.
  • Tập lệnh bắt đầu : Luôn được xác định. Nếu nó chạy nút, tập tin đó phải tồn tại.
  • Lắng nghe trên cổng được chỉ định : Đọc cổng từ process.env.PORT (3000 là cổng thông dụng để sử dụng).
  • Các gói thời gian chạy trong các gói phụ thuộc : Bất cứ thứ gì cần thiết trong quá trình xây dựng hoặc khởi động đều phải nằm trong các gói phụ thuộc, không phải là devDependencies.
  • Không tải lên node_modules : Loại trừ node_modules khỏi kho zip hoặc Git của bạn.

If you've checked the requirements and are experiencing issues deploying, install the NODE_JS agent skill from GitHub for more assistance.

Về đầu trang

Xem thêm thông tin