Cloudflare Pages: NextJS&VueJS Hybrid deployment failed
Hi, I am using
NextJS
functions and VueJS
static files for a historical problem.
My project arch is: src/pages/api/*.js
for functions and fe/*.vue
.
My Pages framework is selected as NextJS. Before each build, I will use npm run prebuild
to change directory to fe
and build the static files to public
.
But I found vite
cannot be found in cloudflare pages' build phase. (More detailed log is attached)
I think vite should be installed by npm run install
but unfortunately not. Thanks for your help.
More info, if I build the fe locally, everything works fine. So the hybridzation deployment is technically possible.2 Replies