Create the deployment first and then upload the files
Closed this issue · 1 comments
matheuss commented
When you create a deployment, the response body will have a missing: Array
key, containing the files that you need to upload. That way, you'll only upload files we don't have yet.
Sure, it's virtually impossible that we already have a given Kapture, but it doesn't hurt to be a bit more correct 🙏
That said, thanks for implementing! I wrote a PoC a few months ago, but never published it 😅
▲ dev ls -lah kap-now
total 24
drwxr-xr-x 6 matheus staff 204B Nov 6 05:04 .
drwxr-xr-x 8 matheus staff 272B Nov 16 15:32 ..
-rw-r--r-- 1 matheus staff 2.4K Nov 6 05:04 index.js
drwxr-xr-x 8 matheus staff 272B Nov 6 04:15 node_modules
-rw-r--r-- 1 matheus staff 323B Nov 5 14:52 package.json
-rw-r--r-- 1 matheus staff 963B Nov 5 13:39 yarn.lock
▲ dev
lucaperret commented
The Now documentation explain Before you create the deployment, you need to upload any required files when they cannot be posted at once.
for the deployments endpoint.