Home
Support Forums

Deploying webpack react app stays at "uploading"

Hi Netlify Team, I tried to deploy the same files with Github and also with Netlify API. The Github method worked but not the API method.

repo: https://github.com/yewyewXD/test-deploy

request body when deploying with Netlify API:

{

    "files": {

        "/package.json": "5804b7f73393d05506c58fe7429762f1129b4dc2",

        "/package-lock.json":"b708d3435684fc1d4901801295df4a72b26142b2",

        "/netlify.toml":"9649e118fe5729ac3680ea7ff4edada9fbc5d797",

        "/webpack.config.js":"bbca38fc633f33b7f138b0c17fd40b4d8ded6905",

        "/index.js":"8df7cf4602cff723610939855c4329e08b40229f",

        "/index.html":"19ecda301fbdbaa63bea52e23871eea686caa678"

    }

}

In the response, the state remains uploading

Hi @yewyewXD,

Correct me if I’m wrong, but won’t your website need building? I mean, API based deploys is for pre-built websites, while it appears that you’re using Webpack to actually build your website. Is that not the case?

1 Like

Oh ya you’re right, thank you for pointing that out! I didn’t know it has to be pre-built. :sweat_smile: