miurla / morphic

An AI-powered search engine with a generative UI
https://morphic.sh
Apache License 2.0
5k stars 1.16k forks source link

Cloudflare Pages build error #114

Open miurla opened 2 months ago

miurla commented 2 months ago

In the latest version build for Cloudflare pages, an error occurs that needs to be identified. Similar reports have also been made. https://github.com/cloudflare/next-on-pages/issues/413#issuecomment-1976355283

The following routes were not configured to run with the Edge Runtime:
    - /_not-found

As a workaround for the build error, it can be resolved with the following approach. workaround: #113 and change to use edge runtime.

miurla commented 1 month ago
Make our own 404 pages for morphic and make all endpoints Edge solve the problem
cameron-eth commented 1 month ago

Hey ! I built on top of the project, but i'm noticing when the searches post, for some reason the page keeps re rendering and routing to the home page ?

ckt1031 commented 1 month ago

Hey ! I built on top of the project, but i'm noticing when the searches post, for some reason the page keeps re rendering and routing to the home page ?

Error occured, Cloudflare Pages is not supported in this project, I have tried to figure out the cause. It uses AI SDK, and Next.js, meaning it should not be used on Cloudflare platform.

khakimov commented 1 month ago

I found that post on vercel ai https://github.com/vercel/ai/issues/633 Will try and update if any success.

ckt1031 commented 1 month ago

I found that post on vercel ai vercel/ai#633 Will try and update if any success.

This only about the issue of Cloudflare DNS while hosting on Vercel network, not Cloudflare Pages. We need to solve the performance issue with Vercel AI SDK and error issue when using CF Pages