hi there!

hi there! trying configure Pages from wrangler.toml and having a use-case not already covered by config: monorepo with Vue app at ./frontend/. Pages builder complains about [build] section not valid for Pages. I'd like to set the build settings like this:
[build]
# command = "npm run build"
cwd = "./frontend/"
watch_dir = "./frontend/"
[build]
# command = "npm run build"
cwd = "./frontend/"
watch_dir = "./frontend/"
Didn't found any docs on this... 😦
6 Replies
Wouter
Wouter•5mo ago
Hey, you can configure it in the dashboard with git integration. Not sure if this is possible with a wrangler.toml but the dashboard might be a workaround for you
No description
pataquets
pataquetsOP•5mo ago
Thx @Wouter. sure, but I'd like to have it configured from wrangler.toml 🙂
Wouter
Wouter•5mo ago
Yep understandable. I tried to download my config with npx wrangler pages download config <project> but it does not seem to include the watch paths etc in it then.
pataquets
pataquetsOP•5mo ago
mine neither. 😦 and the [build]section is workers-only
jason
jason•5mo ago
have you found it necessary to place wrangler.toml in the repo root? I'm having issues b/c my sveltekit project is in web dir and even setting path as web doesn't work, b/c Cloudflare looks for wrangler.toml before it cwd's into web during the build process.
No description
jason
jason•5mo ago
But moving wrangler.toml into the root doesn't seem to make sense b/c it won't apply to other projects in the monorepo. What am I missing?
Want results from more Discord servers?
Add your server