mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-11 04:22:13 +00:00
[build-utils] Add EdgeFunction output type (#7510)
Co-authored-by: Steven <steven@ceriously.com>
This commit is contained in:
@@ -153,9 +153,8 @@ export const routesSchema = {
|
||||
},
|
||||
},
|
||||
},
|
||||
middleware: {
|
||||
type: 'number',
|
||||
},
|
||||
middleware: { type: 'number' },
|
||||
middlewarePath: { type: 'string' },
|
||||
has: hasSchema,
|
||||
missing: hasSchema,
|
||||
},
|
||||
|
||||
@@ -38,6 +38,14 @@ export type Source = {
|
||||
redirect?: Record<string, string>;
|
||||
cookie?: string;
|
||||
};
|
||||
/**
|
||||
* A middleware key within the `output` key under the build result.
|
||||
* Overrides a `middleware` definition.
|
||||
*/
|
||||
middlewarePath?: string;
|
||||
/**
|
||||
* A middleware index in the `middleware` key under the build result
|
||||
*/
|
||||
middleware?: number;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user