mumumu3560 / prefecture-graph

0 stars 0 forks source link

Cloudflareの方でエラー #6

Open mumumu3560 opened 9 months ago

mumumu3560 commented 9 months ago
image

こういこういったエラーが出てしまった。

mumumu3560 commented 9 months ago

https://developers.cloudflare.com/pages/framework-guides/deploy-a-nextjs-site/ ここら辺?cookieの問題?

mumumu3560 commented 9 months ago

Cloudflareの方でデプロイはできたが

Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.

Failed to load resource: the server responded with a status of 500 () Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received

のようにエラーが発生した。わからん

mumumu3560 commented 9 months ago

ローカルでnpm run devすると

1 of 1 unhandled error Next.js is up to date

Unhandled Runtime Error Error: There is no suitable adapter to dispatch the request since :

うーんよくわからないがfetchを使った方がいいということ?

mumumu3560 commented 9 months ago

上記の通りにしてみると動くようになった。しかしローカルでやったときと挙動が違うのがよくわからない。なんでだ???むしろ期待通りに?