![](/img/trans.png)
[英]I want to host a nextjs website in shared hosting. Which is the best way?
[英]How can I host my NextJS website on Winhost which supports IISnode?
最近我使用 NextJS 開發了一個網站,它具有 ISR 和 API 路由等功能。 不幸的是,我購買了一個名為Winhost的托管服務,它不是專門針對 NextJS 的,只支持 IISnode。
那么,有沒有一種方法可以托管我的 NextJS 網站而無需 static 導出並保留所有功能?
歸根結底,服務器端的 NextJS 應用程序是 NodeJS 應用程序,請按照此處的步驟操作
node.exe
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="iisnode" path="*.js" verb="*" modules="iisnode" />
</handlers>
</system.webServer>
</configuration>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.