If anyone searches this, managed to get it working. My root `layout.tsx` file had the following: ```

If anyone searches this, managed to get it working. My root layout.tsx file had the following:
export const runtime = 'edge';
export const dynamic = 'force-dynamic';
export const revalidate = 0;
export const runtime = 'edge';
export const dynamic = 'force-dynamic';
export const revalidate = 0;
Which for my use case was fine, nearly every page retrieves data from a CMS, not much gets statically rendered. Deleting the root layout fixed it and it built successfully, I wonder if it's because I'm using the platforms approach, so don't have a root page.tsx file, only a layout. Will look into it more tomorrow but at least I've found how to make it compile!
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?