turbo
dd35b16c - fix: Install adapter-vercel in with-svelte example (#15019)

Commit
5 days ago
fix: Install adapter-vercel in with-svelte example (#15019) ### Description Vercel deployments of the `with-svelte` example fail after `vite build` finishes. `@sveltejs/adapter-auto` detects Vercel and runs `pnpm add -D @sveltejs/adapter-vercel@6` during the build. That install fails with `ERR_PNPM_UNEXPECTED_STORE` because the installed `node_modules` link to a different pnpm store than the one the nested install wants. The build then exits with `Could not install @sveltejs/adapter-vercel`. This PR adds `@sveltejs/adapter-vercel` 6.3.5 to the `sveltejs` catalog and to the devDependencies of `apps/web` and `apps/docs`. `adapter-auto` finds the installed adapter and skips the install. `svelte.config.js` still uses `adapter-auto`, so the example still deploys to other platforms. ```text vite build adapter-auto detects Vercel - pnpm add -D @sveltejs/adapter-vercel@6 (fails: ERR_PNPM_UNEXPECTED_STORE) + imports the installed @sveltejs/adapter-vercel ``` ### Testing Instructions In `examples/with-svelte`, run `VERCEL=1 pnpm turbo run build --filter=web --filter=docs --force`. All 3 tasks pass, the log has no `Installing @sveltejs/adapter-vercel` line, and `apps/web/.vercel/output` contains the Vercel build output.
Author
Parents
Loading