Serving Multiple Static Files In Nestjs For Different Locations And Prefixes?
I am currently serving static files for some developer static docs I have created, I am currently using app.useStaticAssets(docsLocation, { prefix: '/docs/' }) My question is th
Solution 1:
You can just register static assets multiple times:
app.useStaticAssets(docsLocation1, { prefix: "/docs1/" })
app.useStaticAssets(docsLocation2, { prefix: "/docs2/" })
Post a Comment for "Serving Multiple Static Files In Nestjs For Different Locations And Prefixes?"