nitropack-nightly 2.12.5-20250724-162330.adcd3954 → 2.12.5-20250726-160806.b49eb81d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const version = "2.12.5-20250724-162330.adcd3954";
1
+ const version = "2.12.5-20250726-160806.b49eb81d";
2
2
 
3
3
  const compatibilityChanges = [
4
4
  {
@@ -12,7 +12,7 @@ const vercel = defineNitroPreset(
12
12
  entry: "./runtime/vercel",
13
13
  output: {
14
14
  dir: "{{ rootDir }}/.vercel/output",
15
- serverDir: "{{ output.dir }}/functions/__nitro.func",
15
+ serverDir: "{{ output.dir }}/functions/__fallback.func",
16
16
  publicDir: "{{ output.dir }}/static/{{ baseURL }}"
17
17
  },
18
18
  commands: {
@@ -41,7 +41,7 @@ const vercelEdge = defineNitroPreset(
41
41
  exportConditions: ["edge-light"],
42
42
  output: {
43
43
  dir: "{{ rootDir }}/.vercel/output",
44
- serverDir: "{{ output.dir }}/functions/__nitro.func",
44
+ serverDir: "{{ output.dir }}/functions/__fallback.func",
45
45
  publicDir: "{{ output.dir }}/static/{{ baseURL }}"
46
46
  },
47
47
  commands: {
@@ -46,17 +46,33 @@ export interface VercelBuildConfigV3 {
46
46
  }[];
47
47
  }
48
48
  /**
49
- * https://vercel.com/docs/build-output-api/v3/primitives#serverless-function-configuration
49
+ * https://vercel.com/docs/build-output-api/primitives#serverless-function-configuration
50
+ * https://vercel.com/docs/build-output-api/primitives#node.js-config
50
51
  */
51
52
  export interface VercelServerlessFunctionConfig {
52
53
  /**
53
54
  * Amount of memory (RAM in MB) that will be allocated to the Serverless Function.
54
55
  */
55
56
  memory?: number;
57
+ /**
58
+ * Specifies the instruction set "architecture" the Vercel Function supports.
59
+ *
60
+ * Either `x86_64` or `arm64`. The default value is `x86_64`
61
+ */
62
+ architecture?: "x86_64" | "arm64";
56
63
  /**
57
64
  * Maximum execution duration (in seconds) that will be allowed for the Serverless Function.
58
65
  */
59
66
  maxDuration?: number;
67
+ /**
68
+ * Map of additional environment variables that will be available to the Vercel Function,
69
+ * in addition to the env vars specified in the Project Settings.
70
+ */
71
+ environment?: Record<string, string>;
72
+ /**
73
+ * List of Vercel Regions where the Vercel Function will be deployed to.
74
+ */
75
+ regions?: string[];
60
76
  /**
61
77
  * True if a custom runtime has support for Lambda runtime wrappers.
62
78
  */
@@ -65,6 +81,10 @@ export interface VercelServerlessFunctionConfig {
65
81
  * When true, the Serverless Function will stream the response to the client.
66
82
  */
67
83
  supportsResponseStreaming?: boolean;
84
+ /**
85
+ * Enables source map generation.
86
+ */
87
+ shouldAddSourcemapSupport?: boolean;
68
88
  [key: string]: unknown;
69
89
  }
70
90
  export interface VercelOptions {
@@ -178,7 +178,7 @@ function generateBuildConfig(nitro, o11Routes) {
178
178
  }
179
179
  ] : [],
180
180
  ...(o11Routes || []).map((route) => ({
181
- src: route.src,
181
+ src: joinURL(nitro.options.baseURL, route.src),
182
182
  dest: "/" + route.dest
183
183
  })),
184
184
  ...nitro.options.routeRules["/**"]?.isr ? [] : [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitropack-nightly",
3
- "version": "2.12.5-20250724-162330.adcd3954",
3
+ "version": "2.12.5-20250726-160806.b49eb81d",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "repository": "nitrojs/nitro",
6
6
  "license": "MIT",