Trying to publish a Remix Pages project with `wrangler publish` but getting this error: `Could not

Trying to publish a Remix Pages project with wrangler publish but getting this error:

Could not resolve "public" after running custom build: npm run build

There's definitely a public directory.
Was this page helpful?