N
Nuxt5mo ago
Spunkie

Where do I place CF workers/functions?

I have a statically generated, content driven, nuxt3 site that is deployed on CF pages through the github integration. Where an I supposed to be placing my workers/functions in my nuxt file structure so it eventually gets compiled to where it should be when generated? So CF pages automatically picks them up and deploys them as CF workers/functions?
3 Replies
manniL
manniL5mo ago
I'd just write nitro API routes and let nitro handle it to convert these all into a worker )
Spunkie
SpunkieOP5mo ago
@manniL / TheAlexLichter thanks, so where in my folder structure does that actually go though?
manniL
manniL5mo ago
/server/api

Did you find this page helpful?