miurla / morphic

An AI-powered search engine with a generative UI

Home Page:https://morphic.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloudflare Pages build error

miurla opened this issue · comments

In the latest version build for Cloudflare pages, an error occurs that needs to be identified. Similar reports have also been made. cloudflare/next-on-pages#413 (comment)

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.

Make our own 404 pages for morphic and make all endpoints Edge solve the problem

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 ?

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.

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

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