birdofpreyru / react-native-static-server

Embedded HTTP server for React Native
https://dr.pogodin.studio/docs/react-native-static-server
Other
135 stars 21 forks source link

The path resolved by `resolveAssetsPath()` is read-only on iOS / macOS... #74

Closed birdofpreyru closed 9 months ago

birdofpreyru commented 10 months ago

thus can't be used alongside WebDAV module. This should be documented, perhaps in the section on WebDAV configuration. Perhaps add options argument to resolveAssetsPath() so that if we need a writable location for WebDAV, it returns some standard path in the temporary folder — i.e. should think later, what seems the most convenient.

birdofpreyru commented 9 months ago

In my current opinion, the best approach here is to use WebDAV module alongside mod_alias to make it work against a writable location, even if other assets live in a readonly place pointed by resolveAssetsPath(). Thus, probably no need for code changes, but maybe some README improvements.