soul icon indicating copy to clipboard operation
soul copied to clipboard

Serve static files over express server

Open faisalsiddique4400 opened this issue 11 months ago • 1 comments

Is your feature request related to a problem? Please describe. Soul currently lacks support for serving static media files. It is essential to implement a configuration option in Soul to enable the serving of static files.

Describe the solution you'd like A customizable feature, similar to extensions, should be provided, allowing users to specify a folder path for serving its contents statically.

Additional context This wrapper is highly compatible with react-admin. If react-admin facilitates handling the upload of media files (such as images) and storing their URLs in the database, Soul should also provide a mechanism to serve these media files. This issue aims to bring attention to the absence of this particular feature in Soul.

faisalsiddique4400 avatar Mar 06 '24 05:03 faisalsiddique4400

Hello @faisalsiddique4400 , I'm pretty sure my team has implemented a working instance of this using _extensions, without requiring any changes to soul-cli. We're serving a compiled react-admin app as static html content from a soul-cli instance.

If the compiled app is loaded into the dist sub-folder of a Soul-cli instance, it can be server from the root url using a Soul extension like this: image

IanMayo avatar Mar 06 '24 10:03 IanMayo

Hi @faisalsiddique4400, @AbegaM is working on a new PR about how to serve static files over Soul. Check out #208 for instructions.

thevahidal avatar Jun 17 '24 12:06 thevahidal