Failed to publish your Function. Got error: Unknown internal error occurred

For Workes & Pages, what is the name of the domain?

https://93da2a16.marketplace-acceptance.pages.dev

What is the error message?

Failed to publish your Function. Got error: Unknown internal error occurred.

What is the issue or error you’re encountering

When trying to deploy a Nuxt application as a Cloudflare Pages app, we get an error

What steps have you taken to resolve the issue?

Can’t see specific logs so we weren’t able to take a lot of actions

What are the steps to reproduce the issue?

  1. We are building our Nuxt application using the nitro_preset cloudflare-pages.
  2. Then we deploy it using the wrangler pages deploy method
  3. The build succeeds, the asset uploads succeed, we have a deployment failure at the end that says “Failed to publish your Function. Got error: Unknown internal error occurred.”

The deployment id: 93da2a16-086e-4e17-bee0-6c9a0b57e22e

This was working until 2 days ago and we can’t find any specific changes that would cause this from our side (not in our project, not in our deployment commands. possibly a configuration change on the Cloudflare UI? but can’t trace that back)

Update: turns out this is related to the Nuxt version, it was working on 3.11.2 but has started failing after upgrading to 3.12.2. For some reason in the specific PR that did the upgrade, the CLI command for the deployment did succeed which is why we weren’t able to spot it