Do not use now-examples anymore

This commit is contained in:
Andy Bitz
2020-01-09 17:26:55 +01:00
parent b7eca1d069
commit fdb74b7971
2 changed files with 4 additions and 17 deletions

View File

@@ -20,15 +20,8 @@ export default withApiHandler(async function(
return res.send(exampleList);
}
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'),
]);
await extract('https://github.com/zeit/now/archive/master.zip', '/tmp');
const exampleList = summary('/tmp/now-master/examples');
const existingExamples = Array.from(exampleList).map(key => ({
name: key,