Commit d45cb7d
chore: upgrade API Platform to 4.3.5 (#638)
* chore: upgrade API Platform to 4.3.5
* fix(pwa): add PNPM_HOME to PATH in Dockerfile
Latest pnpm versions fail with "global bin directory is not in PATH"
when running `pnpm config -g set store-dir` during the image build.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix(pwa): use dedicated PNPM_HOME directory
Setting PNPM_HOME to the default `/root/.local/share/pnpm` left pnpm
still looking for `$PNPM_HOME/bin` in PATH. Use a dedicated directory
as recommended by pnpm Docker docs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix(pwa): add pnpm bin subdirectory to PATH
pnpm computes its global bin directory as `$PNPM_HOME/bin`, not
`$PNPM_HOME` itself. Add the `/bin` suffix to PATH so the check passes.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix(pwa): set CI=true in builder stage
pnpm 10.x aborts node_modules purge in absence of a TTY unless CI is
declared. Without it, `pnpm install` fails with
ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY in Docker builds.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix(pwa): drop --prod from pnpm fetch
`pnpm fetch --prod` misses some packages (e.g. @api-platform/admin)
that are required by `pnpm install --offline --prod`, causing
ERR_PNPM_NO_OFFLINE_TARBALL during the build. Fetching everything
ensures the offline install has all tarballs available.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix(pwa): copy package.json before pnpm fetch
Without package.json present, corepack runs `pnpm fetch` with the
@latest pnpm from the base stage, while `pnpm install` later uses the
version pinned in package.json (10.33.0). The two versions can have
incompatible store layouts, leading to ERR_PNPM_NO_OFFLINE_TARBALL.
Copy package.json alongside the lockfile so corepack uses the same
pnpm version for both steps.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix(pwa): install devDependencies for Next.js build
Next.js 16 build fails when TypeScript is not installed, but the
project keeps typescript and @types/* in devDependencies. The final
prod image is built from the Next.js standalone output, so installing
devDeps in the builder stage does not bloat the runtime image.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
---------
Co-authored-by: api-platform-release-manager[bot] <218572938+api-platform-release-manager[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent 7cf41bc commit d45cb7d
5 files changed
Lines changed: 75 additions & 69 deletions
File tree
- api
- config/packages
- helm/api-platform
- pwa
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments