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

reactjs - RSC are rendered on the browser sometimes in the prod for nextjs - Stack Overflow

programmeradmin2浏览0评论

Sometimes RSC are rendered on the browser not the html tags in nextjs config.

Not sure why this is happeneing. This is only happening in prod I am fetching the data from dynamo. My code is hosted on ecs with loadbalancer and caching on cloudfront.

    const data = await fetchData("page", "homepage");

  if (!data || data.error) { // Handle potential errors
    return (
      <main>
        <div className="wrapper-fluid">
          <div className="wrapper-centered">
            <h1>Error Loading Home Page</h1>
            <p>{data?.error || "Failed to fetch content."}</p>
          </div>
        </div>
      </main>
    );
  }

发布评论

评论列表(0)

  1. 暂无评论