
Research
/Security News
GlassWASM: WebAssembly Malware Found in Trojanized Open VSX Extensions
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.
@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 167,248 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
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.