mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 12:57:46 +00:00
[api] Fix filename and update .vercelignore and vercel.json (#4511)
- Fix a filename in the examples API - Rename .nowignore to .vercelignore - Rename now.json to vercel.json
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -27,3 +27,4 @@ test/lib/deployment/failed-page.txt
|
|||||||
/.env
|
/.env
|
||||||
/public
|
/public
|
||||||
__pycache__
|
__pycache__
|
||||||
|
.vercel
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ export default withApiHandler(async function(
|
|||||||
res: NowResponse
|
res: NowResponse
|
||||||
) {
|
) {
|
||||||
await extract('https://github.com/vercel/vercel/archive/master.zip', '/tmp');
|
await extract('https://github.com/vercel/vercel/archive/master.zip', '/tmp');
|
||||||
const exampleList = summary('/tmp/now-master/examples');
|
const exampleList = summary('/tmp/vercel-master/examples');
|
||||||
|
|
||||||
const existingExamples = Array.from(exampleList).map(key => ({
|
const existingExamples = Array.from(exampleList).map(key => ({
|
||||||
name: key,
|
name: key,
|
||||||
|
|||||||
Reference in New Issue
Block a user