Nuxt.js deployment missing CF Functions.

Hi, i just updated one of our Nuxt.js Projects to the latest release version. For whatever reason Pages no longer recognizes the functions folder. Previous Deployments with old Nuxt version didnt have this problem. The functions folder is still present in the repository and is not on the gitignore file
No description
4 Replies
𝖆𝖚𝖙𝖎𝖘𝖙
Appended an "ls" behinde the "nuxt build" of the package.json to confirm the presence of the functions folder. I really dont understand why cloudflare wont deploy it 😄
No description
Chaika
Chaika2mo ago
It looks like you've got _workers.js, which is Pages Advanced Mode and causes your Functions folder to be ignored: https://developers.cloudflare.com/pages/functions/advanced-mode/
When using a _worker.js file, the entire /functions directory is ignored, including its routing and middleware characteristics.
Not sure specifically about nuxt, perhaps between your current version and they last they switched from static -> ssr (or using an adv mode function to assist routing)?
Cloudflare Docs
Advanced mode | Cloudflare Pages docs
Advanced mode allows you to develop your Pages Functions with a _worker.js file rather than the /functions directory.
𝖆𝖚𝖙𝖎𝖘𝖙
Well, seems like i have to do a deep dive haha Cuz when i build locally (npm run build, like configured in the pages project), i do not get any _workers.js file 😄 Will look into that tomorrow and get back to this thread. User error haha Fixed it by using generate and not build 😄
Want results from more Discord servers?
Add your server