
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
@vercel/config
Advanced tools
TypeScript SDK for programmatically defining Vercel configuration. Write type-safe routing rules and build configuration in TypeScript instead of JSON.
npm install @vercel/config
Create a vercel.ts file in your project root:
import { createRouter } from '@vercel/config';
import type { VercelConfig } from '@vercel/config';
const router = createRouter();
export const config: VercelConfig = {
buildCommand: 'npm run build',
framework: 'nextjs',
rewrites: [
// Simple rewrite
router.rewrite('/api/(.*)', 'https://backend.api.example.com/$1'),
// Rewrite with transforms
router.rewrite('/users/:userId', 'https://api.example.com/users/$1',
({ userId, env }) => ({
requestHeaders: {
'x-user-id': userId,
'authorization': `Bearer ${env.API_TOKEN}`
}
})
)
],
redirects: [
router.redirect('/old-docs', '/docs', { permanent: true })
],
headers: [
router.cacheControl('/static/(.*)', {
public: true,
maxAge: '1 week',
immutable: true
})
],
crons: [
{ path: '/api/cleanup', schedule: '0 0 * * *' }
]
};
router.redirect(), router.rewrite(), router.header()has and missing conditionscompile and validate commands for developmentYour vercel.ts is automatically compiled to vercel.json during:
vercel build
vercel dev
vercel deploy
No manual build step needed - the Vercel CLI handles compilation automatically.
For development and validation:
# Compile vercel.ts to JSON (output to stdout)
npx @vercel/config compile
# Validate config for errors and show summary
npx @vercel/config validate
# Generate vercel.json locally (for development)
npx @vercel/config generate
vercel.ts and vercel.json.requestHeaders), they're compiled to the lower-level routes primitive internally.vercel.ts automatically.FAQs
A TypeScript SDK for programmatically configuring Vercel projects
The npm package @vercel/config receives a total of 132,511 weekly downloads. As such, @vercel/config popularity was classified as popular.
We found that @vercel/config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.