N
Nuxt4mo 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
manniL4mo ago
I'd just write nitro API routes and let nitro handle it to convert these all into a worker )
Spunkie
SpunkieOP4mo ago
@manniL / TheAlexLichter thanks, so where in my folder structure does that actually go though?
manniL
manniL4mo ago
/server/api
Want results from more Discord servers?
Add your server