Git Product home page Git Product logo

get-vercel-source-code's Introduction

Get Vercel Source Code

Screen Shot 2021-04-08 at 12 33 31

Instructions

1 - Install the dependecies.

npm i

2 - Get your Vercel token at https://vercel.com/account/tokens, copy .env.sample as .env and update the value:

VERCEL_TOKEN = ""
# Optionally if using a team account
VERCEL_TEAM = ""

3 - Run the script and wait until complete.

node index.js <VERCEL DEPLOYMENT URL or ID> <DESTINATION>

For example, node index.js example-5ik51k4n7.vercel.app ../example.

Or using the id directly, node index.js dpl_6CR1uw9hBdpWgrMvPkncsTGRC18A ../example.

get-vercel-source-code's People

Contributors

baruchadi avatar ivanfgm avatar zehfernandes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

get-vercel-source-code's Issues

node_modules not getting installed

Hi there, i was trying to pull my project's source code from vercel through this but. after cloning it, when I executed the command of 'npm i'
it didn't installed the required modules.

Ofcourse when it didn't get downloaded, it is not going to run as well.
Showing me this error:

Can anyone help! i have tried cloning it again but, same situation.
Screenshot 2023-12-21 145535
Screenshot 2023-12-21 145601

Response Code 404

Trying to restore a deleted repo from GitHub through this application, everything is setup correctly in config and this error comes up:
‌⁠‍​
image
‌‌⁠⁠​

Module not found

Hi,

After install (npm i), I try to use the command to download, but I received a error: module not found.

Error

Kind regards,
Yuri.

Incomplete downloading of files

hi there, I have tried to download my project with different ways as suggested and guided in issues but, still I am facing the problem. The project is not getting downloaded, your source code is just creating empty directories. If you can help with that.
Here are the screenshots attached with every possible method mentioned:
Screenshot 2023-12-21 174550
Screenshot 2023-12-21 174642
Screenshot 2023-12-21 174718

Also, please add relevant comments in your code, for the contributors to understand your code better.

Internal Server Error

I am getting 500: Internal Server Error on the v6/deployments/:id/files path.
The v13/deployments/:url path is correctly working and extracting the id as well. But somehow this one is not working.

I am doubtful if the endpoint has not changed.

HTTPError: Response code 500 (Internal Server Error)

node index.js aws-kpripper.vercel.app
✔ Getting deployment id
✖ Loading source files tree
HTTPError: Response code 500 (Internal Server Error) at Request. (file:///D:/Code/get-vercel-source-code-main/node_modules/got/dist/source/as-promise/index.js:86:42) at Object.onceWrapper (node:events:628:26) at Request.emit (node:events:525:35)
at Request._onResponseBase (file:///D:/Code/get-vercel-source-code-main/node_modules/got/dist/source/core/index.js:710:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Request._onResponse (file:///D:/Code/get-vercel-source-code-main/node_modules/got/dist/source/core/index.js:749:13)

Error 508 response

I haven't had luck with this script, I'm getting this error:

HTTPError: Response code 508 (Loop Detected)
    at Request.<anonymous> (file:///F:/VSCode/Vercel/get-vercel-source-code/node_modules/.pnpm/[email protected]/node_modules/got/dist/source/as-promise/index.js:86:42)
    at Object.onceWrapper (node:events:628:26)
    at Request.emit (node:events:525:35)
    at Request._onResponseBase (file:///F:/VSCode/Vercel/get-vercel-source-code/node_modules/.pnpm/[email protected]/node_modules/got/dist/source/core/index.js:726:22)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Request._onResponse (file:///F:/VSCode/Vercel/get-vercel-source-code/node_modules/.pnpm/[email protected]/node_modules/got/dist/source/core/index.js:765:13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.