最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - Deploy Next Js on Cpanel - Stack Overflow

programmeradmin1浏览0评论

I am trying to deploy my next js app on cpanel.

I think I have everything well configured, included my htaccess but I go to my website and receive Application error: a client-side exception has occurred (see the browser console for more information).

My htaccess looks like this:

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
    AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

<IfModule mod_rewrite.c>

DirectoryIndex disabled

RewriteEngine On

RewriteBase /

RewriteRule ^(.*)?$ http://127.0.0.1:3000/$1 [P,L]

</IfModule>
发布评论

评论列表(0)

  1. 暂无评论