You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@vercel/build-utils

Package Overview
Dependencies
Maintainers
2
Versions
401
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/build-utils - npm Package Compare versions

Comparing version
13.3.3
to
13.3.4
+10
-0
CHANGELOG.md
# @vercel/build-utils
## 13.3.4
### Patch Changes
- Add support for `regions` in `vercel.json` function-level configuration. ([#14963](https://github.com/vercel/vercel/pull/14963))
Matching function `regions` are now parsed from `functions` config, written into lambda output config, and documented in config types so they override top-level deployment regions for that function.
- [services] set framework prefixed env var urls to relative path ([#14958](https://github.com/vercel/vercel/pull/14958))
## 13.3.3

@@ -4,0 +14,0 @@

+7
-4

@@ -19,6 +19,9 @@ import type { Service } from './types';

* For each web service, generates:
* 1. A base env var (e.g., BACKEND_URL)
* 2. Framework-prefixed versions for each frontend framework in the deployment
* (e.g., VITE_BACKEND_URL, NEXT_PUBLIC_BACKEND_URL) so they can be accessed
* in client-side code.
* 1. A base env var with the full absolute URL (e.g., BACKEND_URL=https://deploy.vercel.app/api)
* for server-side use.
* 2. Framework-prefixed versions with only the route prefix path
* (e.g., NEXT_PUBLIC_BACKEND_URL=/api, VITE_BACKEND_URL=/api) for client-side use.
* Using relative paths avoids CORS issues since the browser resolves them against
* the current origin, which works correctly across production domains, preview
* deployments, and custom domains.
*

@@ -25,0 +28,0 @@ * Environment variables that are already set in `currentEnv` will NOT be overwritten,

@@ -60,5 +60,5 @@ "use strict";

const baseEnvVarName = serviceNameToEnvVar(service.name);
const url = computeServiceUrl(deploymentUrl, service.routePrefix);
const absoluteUrl = computeServiceUrl(deploymentUrl, service.routePrefix);
if (!(baseEnvVarName in currentEnv)) {
envVars[baseEnvVarName] = url;
envVars[baseEnvVarName] = absoluteUrl;
}

@@ -68,3 +68,3 @@ for (const prefix of frameworkPrefixes) {

if (!(prefixedEnvVarName in currentEnv)) {
envVars[prefixedEnvVarName] = url;
envVars[prefixedEnvVarName] = service.routePrefix;
}

@@ -71,0 +71,0 @@ }

@@ -138,2 +138,2 @@ /// <reference types="node" />

export declare function createZip(files: Files): Promise<Buffer>;
export declare function getLambdaOptionsFromFunction({ sourceFile, config, }: GetLambdaOptionsFromFunctionOptions): Promise<Pick<LambdaOptions, 'architecture' | 'memory' | 'maxDuration' | 'experimentalTriggers' | 'supportsCancellation'>>;
export declare function getLambdaOptionsFromFunction({ sourceFile, config, }: GetLambdaOptionsFromFunctionOptions): Promise<Pick<LambdaOptions, 'architecture' | 'memory' | 'maxDuration' | 'regions' | 'experimentalTriggers' | 'supportsCancellation'>>;

@@ -325,2 +325,3 @@ "use strict";

maxDuration: fn.maxDuration,
regions: fn.regions,
experimentalTriggers: fn.experimentalTriggers,

@@ -327,0 +328,0 @@ supportsCancellation: fn.supportsCancellation

@@ -28,2 +28,8 @@ export declare const functionsSchema: {

};
regions: {
type: string;
items: {
type: string;
};
};
includeFiles: {

@@ -30,0 +36,0 @@ type: string;

@@ -87,2 +87,8 @@ "use strict";

},
regions: {
type: "array",
items: {
type: "string"
}
},
includeFiles: {

@@ -89,0 +95,0 @@ type: "string",

@@ -347,2 +347,3 @@ /// <reference types="node" />

maxDuration?: number;
regions?: string[];
runtime?: string;

@@ -349,0 +350,0 @@ includeFiles?: string;

{
"name": "@vercel/build-utils",
"version": "13.3.3",
"version": "13.3.4",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

Sorry, the diff of this file is too big to display