mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-07 21:07:46 +00:00
[now-next] Add loading of custom routes (#3279)
This adds loading of `redirects` and `rewrites` from the `routes-manifest` in supported Next.js versions
This commit is contained in:
@@ -89,7 +89,11 @@ async function testDeployment (
|
||||
continue;
|
||||
}
|
||||
const probeUrl = `https://${deploymentUrl}${probe.path}`;
|
||||
const fetchOpts = { method: probe.method, headers: { ...probe.headers } };
|
||||
const fetchOpts = {
|
||||
...probe.fetchOptions,
|
||||
method: probe.method,
|
||||
headers: { ...probe.headers },
|
||||
};
|
||||
if (probe.body) {
|
||||
fetchOpts.headers['content-type'] = 'application/json';
|
||||
fetchOpts.body = JSON.stringify(probe.body);
|
||||
|
||||
Reference in New Issue
Block a user