I used uppy with CDN to create a simple file upload page. Now I would like to bring this page onto my server, but I read that CDN is not recommended for the production environment. I don’t understand how to import uppy for use on my page whitout using CDN. Can anyone help me?
Help to use uppy in production server
Started by gmk1 reply429 views
gmkOriginal post
aduh95
The best practice is to setup a bundler and serve its output from your server. If you don’t have a bundler setup yet, you can follow one of the example in the uppy repo (e.g. https://github.com/transloadit/uppy/tree/main/examples/bundled) to see what that could look like.
Using the CDN in production is fine if you don’t want to setup a build process. It will make your webpage load slower, but depending on your use-case that might not matter to you, and would be much less hassle to get going.