Bedrock utilities for static site generation.
yarn install @bedrockio/pagesWarning
When installing using Yarn v1 you may get errors due to the sharp binary not installing correctly. To fix this use:
yarn install @bedrockio/pages --ignore-enginesIn GCP, deploying a new version requires the default service account to have the ability to patch deployments. This can be added by applying the app-deployer role to your kubernetes cluster.
To deploy to Cloudflare Pages your project should use Yarn v3, otherwise the sharp binary in favicons may not deploy correctly.
Installing a new dependency to a package in the monorepo involves two steps:
yarn workspace @bedrockio/pages add <package>
# Required to consolidate dependencies to root
yarn install[!WARNING] >
react-routermust be imported directly from this package as it is used internally and cannot be a peer dependency due to module resolution issues.
[!WARNING] > When linking for local dev an "Invalid hook call" error typically means you need to run
yarn eject.