szymmis / vite-express

⚡ @vitejs integration module for @expressjs
MIT License
658 stars 39 forks source link

【Feature】inject static middleware #145

Open code-farmer-i opened 2 months ago

code-farmer-i commented 2 months ago

I hope it can be configured to disable the injection of static middleware in production mode, because I need to upload static resources to cdn for use. like { injectStaticMiddleware: false }

szymmis commented 2 months ago

Hi @code-farmer-i, currently there isn't a way of achieving that but maybe you are willing to make a contribution? I'd be happy to help you with that!