- Log in to the Cloudflare dashboard and select your account.
- Select Compute(Workers) > Create > Pages.
- Click Connect to Git > gemini-next-chat > Begin Setup
- Framework preset > Next.js > Set Environment Variables > Save and Deploy
- Settings > Runtime > Compatibility Flags > Fill in
nodejs_compat
> Save - Deploy > Redeploy
Since the pages.dev
domain name cannot be accessed normally in some countries, you can solve this problem by setting a custom domain name.
- Select Compute(Workers) > Your project.
- Select Custom Domains > Set up a custom domain.