Pages deployment Error: Output directory "[foldername]/dist " not found.
Hi,
I am currently trying to deploy a website following this tutorial:
https://developers.cloudflare.com/pages/framework-guides/deploy-a-vite3-project/
But using React instead of Vue. The directory is inside a subdirectory of the project and I set the root directory inside the build parameters accordingly. The build is working:
But still the build output directory "dist" (which is generated locally) is not found.
I would really appreciate some help.
Thanks a lot in advance.
Cloudflare Docs
Vite 3 | Cloudflare Pages docs
Vite ↗ is a next-generation build tool for front-end developers. With the release of Vite 3 ↗, developers can make use of new command line (CLI) improvements, starter templates, and more ↗ to help build their front-end applications.
8 Replies
what is your build output set to?
also deployment id?
And where can I find the deployment id? In the url?
Is the last part of the url
you have a space in your output dir
that's likely what is causing it
:LULE:
Solved it. Thanks a lot 😄
cc: @Will Taylor | Workers seems like a quick win to .trim() this if you want it
Maybe worth a fix? Trailing whitespaces are not possible in this context ^^
I want all the beans 😂