polotno-node 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -10
- package/dist/assets/index-ae105516.js +370 -0
- package/dist/index.html +17 -0
- package/index.js +3 -2
- package/instance.js +1 -1
- package/package.json +5 -4
- package/dist/client.3517c032.js +0 -3942
- package/dist/client.html +0 -1
package/README.md
CHANGED
|
@@ -295,16 +295,10 @@ Unhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","er
|
|
|
295
295
|
|
|
296
296
|
It may mean that Polotno Client Editor was not loaded in `puppeteer` instance. It is possible that you are missing required files in `node_modules` folder. I got this error when I was trying to run `polotno-node` on Vercel. To fix the issue you need to add this config into `vercel.json`:
|
|
297
297
|
|
|
298
|
-
```
|
|
299
|
-
|
|
298
|
+
```json
|
|
300
299
|
"functions": {
|
|
301
|
-
"api/render.js": { // remember to replace this line with your function name
|
|
302
|
-
"includeFiles": "node_modules/polotno-node/\*\*"
|
|
303
|
-
},
|
|
300
|
+
"api/render.js": { // remember to replace this line with your function name
|
|
301
|
+
"includeFiles": "node_modules/polotno-node/\*\*"
|
|
302
|
+
},
|
|
304
303
|
}
|
|
305
|
-
|
|
306
|
-
```
|
|
307
|
-
|
|
308
|
-
```
|
|
309
|
-
|
|
310
304
|
```
|