Enforce uvai.io as the canonical frontend and tighten backend CORS#100
Enforce uvai.io as the canonical frontend and tighten backend CORS#100
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@copilot Prompt Yourself: Identify and remove the root cause of the Turbopack/Next.js build failure in apps/web/src/app/layout.js. Key failure:
Solution Plan:
Example code fix for asset imports in layout.js: // BAD: (will fail)
// import myImage from './my-image.png';
// GOOD: Use next/image for images
import Image from 'next/image';
export default function Layout() {
return (
<main>
<Image src="/my-image.png" alt="desc" width={400} height={300} />
{/* ... */}
</main>
);
}Action Items:
Reference:
Prompt Yourself:
Ready to build. |
Addressed in d69533b. I removed the generated |
|
Closing: has merge conflicts with main after PR #113 merge. CORS and canonical URL enforcement can be done in a fresh PR if needed. |
Multiple live frontends (Vercel/Cloudflare) created branding confusion; the product needs a single canonical domain (
uvai.io) with redirects andapi.uvai.iofor the backend.Frontend canonicalization
https://uvai.io.uvai.ioin production while allowing local dev hosts.Backend alignment
uvai.io,www.uvai.io,api.uvai.io, and local dev origins.Docs
Example redirect logic:
Original prompt