'How to make Nuxt.js generate static files from external files(pdf, doc, etc.) coming from a server?
I'm using Nuxt.js to generate full static site(target: static). It makes all API calls static(no more API calls to the server) and thats awesome. But I have links to download some files(pdf, doc, ect) comming from CMS. And after static generation nuxt still request this links from the server. How to make nuxt copy this files and put them in dist folder so it wont make request to the server. Like it does with API calls? Is it possible ?
This files are added and updated on CMS side. So I can't mannually put them in static folder.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|