How to serve static files on-demand after the build process #1498
Replies: 1 comment 1 reply
-
Does adding your files to the |
Beta Was this translation helpful? Give feedback.
-
Does adding your files to the |
Beta Was this translation helpful? Give feedback.
-
In an Express.js or NestJS application, we can use the "Serving static files in Express" feature to allow a server to serve static files (such as CSV, JPG, TXT) so that the files can be added/removed after the build and during production. After studying the Nitro and Nuxt 3 documentation, I did not find a similar feature. In Nitro, both "serverAssets" and "publicAssets" are part of the build process. Here's an example of using NestJS to serve files statically on-demand, such as when a user changes their profile picture:
Question:
Is there an alternative approach in Nitro or Nuxt 3 to serve static files on-demand after the build process?
Beta Was this translation helpful? Give feedback.
All reactions