如何将我的 nextjs 网站上传到 siteground 托管?

问题描述 投票:0回答:1

我的应用程序已经有一个 .next 文件夹,但我想知道如何上传它并在 siteground 上运行它

我用过 vercel,它非常棒,但这是客户的要求,我想知道是否可能

reactjs next.js hosting
1个回答
0
投票

您必须静态构建应用程序。

应用程序路由器和页面路由器有不同的过程:

页面路由器文档https://nextjs.org/docs/pages/building-your-application/deploying/static-exports

应用程序路由器文档https://nextjs.org/docs/app/building-your-application/deploying/static-exports

构建应用程序后,您将在应用程序中获得一个 out 目录。在此目录中,您将获得所有构建的 html 文件和资源。

© www.soinside.com 2019 - 2024. All rights reserved.