mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
Revert "Do not use now-examples anymore"
This reverts commit fdb74b7971.
This commit is contained in:
@@ -20,8 +20,15 @@ export default withApiHandler(async function(
|
||||
return res.send(exampleList);
|
||||
}
|
||||
|
||||
await extract('https://github.com/zeit/now/archive/master.zip', '/tmp');
|
||||
const exampleList = summary('/tmp/now-master/examples');
|
||||
await Promise.all([
|
||||
extract('https://github.com/zeit/now/archive/master.zip', '/tmp'),
|
||||
extract('https://github.com/zeit/now-examples/archive/master.zip', '/tmp'),
|
||||
]);
|
||||
|
||||
const exampleList = new Set([
|
||||
...summary('/tmp/now-master/examples'),
|
||||
...summary('/tmp/now-examples-master'),
|
||||
]);
|
||||
|
||||
const existingExamples = Array.from(exampleList).map(key => ({
|
||||
name: key,
|
||||
|
||||
Reference in New Issue
Block a user