Pages deploy, doesn't respect build settings

I'm getting an error even though I set my build command to exit 0.
4 Replies
Ohad @ BlockMesh Network
21:53:53.928 No wrangler.toml file found. Continuing.
21:53:54.017 Restoring from dependencies cache
21:53:54.035 Restoring from build output cache
21:53:54.324 Detected the following tools from environment: [email protected], [email protected]
21:53:54.324 Installing project dependencies: yarn
21:53:54.969 ➤ YN0070: Migrating from Yarn 1; automatically enabling the compatibility node-modules linker 👍
21:53:54.969
21:53:55.015 ➤ YN0000: ┌ Resolution step
21:53:55.301 ➤ YN0032: │ keccak@npm:3.0.4: Implicit dependencies on node-gyp are discouraged
21:53:55.426 ➤ YN0032: │ node-addon-api@npm:2.0.2: Implicit dependencies on node-gyp are discouraged
21:53:55.721 ➤ YN0032: │ bigint-buffer@npm:1.1.5: Implicit dependencies on node-gyp are discouraged
21:53:56.685 ➤ YN0032: │ fsevents@npm:2.3.3: Implicit dependencies on node-gyp are discouraged
21:53:59.549 ➤ YN0032: │ bufferutil@npm:4.0.8: Implicit dependencies on node-gyp are discouraged
21:53:59.553 ➤ YN0032: │ utf-8-validate@npm:5.0.10: Implicit dependencies on node-gyp are discouraged
21:53:59.655 ➤ YN0002: │ @solana/spl-token-metadata@npm:0.1.2 [752aa] doesn't provide fastestsmallesttextencoderdecoder (pe2d73), requested by @solana/codecs-strings
21:53:59.655 ➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
21:53:59.657 ➤ YN0000: └ Completed in 4s 642ms
21:53:59.683 ➤ YN0000: ┌ Post-resolution validation
21:53:59.683 ➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
21:53:59.684 ➤ YN0000: └ Completed
21:53:59.684 ➤ YN0000: Failed with errors in 4s 670ms
21:53:59.756 Error: Exit with error code: 1
21:53:53.928 No wrangler.toml file found. Continuing.
21:53:54.017 Restoring from dependencies cache
21:53:54.035 Restoring from build output cache
21:53:54.324 Detected the following tools from environment: [email protected], [email protected]
21:53:54.324 Installing project dependencies: yarn
21:53:54.969 ➤ YN0070: Migrating from Yarn 1; automatically enabling the compatibility node-modules linker 👍
21:53:54.969
21:53:55.015 ➤ YN0000: ┌ Resolution step
21:53:55.301 ➤ YN0032: │ keccak@npm:3.0.4: Implicit dependencies on node-gyp are discouraged
21:53:55.426 ➤ YN0032: │ node-addon-api@npm:2.0.2: Implicit dependencies on node-gyp are discouraged
21:53:55.721 ➤ YN0032: │ bigint-buffer@npm:1.1.5: Implicit dependencies on node-gyp are discouraged
21:53:56.685 ➤ YN0032: │ fsevents@npm:2.3.3: Implicit dependencies on node-gyp are discouraged
21:53:59.549 ➤ YN0032: │ bufferutil@npm:4.0.8: Implicit dependencies on node-gyp are discouraged
21:53:59.553 ➤ YN0032: │ utf-8-validate@npm:5.0.10: Implicit dependencies on node-gyp are discouraged
21:53:59.655 ➤ YN0002: │ @solana/spl-token-metadata@npm:0.1.2 [752aa] doesn't provide fastestsmallesttextencoderdecoder (pe2d73), requested by @solana/codecs-strings
21:53:59.655 ➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
21:53:59.657 ➤ YN0000: └ Completed in 4s 642ms
21:53:59.683 ➤ YN0000: ┌ Post-resolution validation
21:53:59.683 ➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
21:53:59.684 ➤ YN0000: └ Completed
21:53:59.684 ➤ YN0000: Failed with errors in 4s 670ms
21:53:59.756 Error: Exit with error code: 1
Ohad @ BlockMesh Network
It worked a couple of times, then started failing , odd.
Ohad @ BlockMesh Network
OK seems like removing exit 0 fixes the issue , which goes against https://developers.cloudflare.com/pages/configuration/build-configuration/ . I thought exit 0 tells it to not try and detect and just take the static assets I have there.
Cloudflare Docs
Build configuration · Cloudflare Pages docs
You may tell Cloudflare Pages how your site needs to be built as well as where its output files will be located.
Want results from more Discord servers?
Add your server