Can't deploy a nextjs pages site in subdirectory

I want to make a repo with many subpackages as templates. so trying to make sure this next site works. Can't get it to work
2024-04-23T02:30:14.50954Z Cloning repository...
2024-04-23T02:30:15.368298Z From https://github.com/xxx/templates
2024-04-23T02:30:15.369163Z * branch 43680e10871af3bc1b2bb967b09fec17198f6e5b -> FETCH_HEAD
2024-04-23T02:30:15.369275Z
2024-04-23T02:30:15.396866Z HEAD is now at 43680e1 Initial commit
2024-04-23T02:30:15.397581Z
2024-04-23T02:30:15.484776Z
2024-04-23T02:30:15.485659Z Using v2 root directory strategy
2024-04-23T02:30:15.515431Z Success: Finished cloning repository files
2024-04-23T02:30:17.153932Z Checking for configuration in a wrangler.toml configuration file (BETA)
2024-04-23T02:30:17.154476Z
2024-04-23T02:30:17.271416Z No wrangler.toml file found. Continuing.
2024-04-23T02:30:17.424988Z Error: Cannot find cwd: /opt/buildhome/repo/next-cf
2024-04-23T02:30:17.425937Z at Se (/snapshot/dist/run-build.js)
2024-04-23T02:30:17.426087Z at Yn (/snapshot/dist/run-build.js)
2024-04-23T02:30:17.42653Z at process.runNextTicks [as _tickCallback] (node:internal/process/task_queues:60:5)
2024-04-23T02:30:17.426646Z at Function.runMain (pkg/prelude/bootstrap.js:1980:13)
2024-04-23T02:30:17.426708Z at node:internal/main/run_main_module:17:47
2024-04-23T02:30:17.431854Z Failed: build command exited with code: 1
2024-04-23T02:30:18.580714Z Failed: error occurred while running build command
2024-04-23T02:30:14.50954Z Cloning repository...
2024-04-23T02:30:15.368298Z From https://github.com/xxx/templates
2024-04-23T02:30:15.369163Z * branch 43680e10871af3bc1b2bb967b09fec17198f6e5b -> FETCH_HEAD
2024-04-23T02:30:15.369275Z
2024-04-23T02:30:15.396866Z HEAD is now at 43680e1 Initial commit
2024-04-23T02:30:15.397581Z
2024-04-23T02:30:15.484776Z
2024-04-23T02:30:15.485659Z Using v2 root directory strategy
2024-04-23T02:30:15.515431Z Success: Finished cloning repository files
2024-04-23T02:30:17.153932Z Checking for configuration in a wrangler.toml configuration file (BETA)
2024-04-23T02:30:17.154476Z
2024-04-23T02:30:17.271416Z No wrangler.toml file found. Continuing.
2024-04-23T02:30:17.424988Z Error: Cannot find cwd: /opt/buildhome/repo/next-cf
2024-04-23T02:30:17.425937Z at Se (/snapshot/dist/run-build.js)
2024-04-23T02:30:17.426087Z at Yn (/snapshot/dist/run-build.js)
2024-04-23T02:30:17.42653Z at process.runNextTicks [as _tickCallback] (node:internal/process/task_queues:60:5)
2024-04-23T02:30:17.426646Z at Function.runMain (pkg/prelude/bootstrap.js:1980:13)
2024-04-23T02:30:17.426708Z at node:internal/main/run_main_module:17:47
2024-04-23T02:30:17.431854Z Failed: build command exited with code: 1
2024-04-23T02:30:18.580714Z Failed: error occurred while running build command
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin