Remix pages Script startup exceeded CPU time limit

Hi all,
I’m migrating an AWS/Docker/Express Remix app over to @remix-run/cloudflare-pages.
wrangler pages dev..... works locally.

compatibility_flags = ["nodejs_compat"] is enabled on the functions and in wrangler.toml

When i merge and deploy to CF i get the following error.

Success: Assets published!
Error: Failed to publish your Function. Got error: Error: Script startup exceeded CPU time limit.

Any ideas on how to trace this?