Cannot find dist subdirectory when building subfolder in docs subdir

I have my documentation in the docs as a subfolder of my repo, rather than having a separate docs repo. I'm using a static astro docs site. On the cloudflare site under "Configure automatic builds and deployments", I tried using: Build output directory: /dist Root directory path: /docs in that case, it builds the docs, but then gives an error:
Error: Output directory "docs/dist" not found.
15:40:08.762 Failed: build output directory not found
Error: Output directory "docs/dist" not found.
15:40:08.762 Failed: build output directory not found
If I then change it to: Build output directory: /docs/dist Root directory path: /docs I get:
15:41:22.226 Error: Output directory "docs/docs/dist" not found.
15:41:22.968 Failed: build output directory not found
15:41:22.226 Error: Output directory "docs/docs/dist" not found.
15:41:22.968 Failed: build output directory not found
I'd rather keep the docs in the repo instead of moving to a separate repo. Any suggestions on what settings to use for "Build output directory" and "Root directory path" when the docs are in the docs subfolder of a repo?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?