Cloudflare Pages root directory

Hi! I’m trying out Cloudflare Pages and having the following issue. My repo is structured as follows


The code in client/ imports code from shared/ but the commands (eg yarn, yarn build) should run from the client/ directory. Is this supported? I’ve tried a couple approaches (setting root directory to client/ and prepending cd client to commands) but they don’t work.

The closest approach seems to be setting the root directory. But it appears that content outside the root directory are not retrieved. I get the error Could not resolve '../../shared/Constants' from src/Constants.ts

Thank you!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.