@@ -51,7 +51,7 @@ and [old][Old Architecture] RN architectures.
51
51
## Content
52
52
53
53
- [ Getting Started] ( #getting-started )
54
- - [ Bundling-in Server Assets Into an App Statically] ( #bundling-in-server-assets-into-an-app-statically )
54
+ - [ Bundling-in Server Assets Into an App Statically]
55
55
- [ Enabling Alias module]
56
56
- [ Enabling Rewrite module]
57
57
- [ Enabling WebDAV module]
@@ -221,6 +221,7 @@ and [old][Old Architecture] RN architectures.
221
221
```
222
222
223
223
### Bundling-in Server Assets Into an App Statically
224
+ [Bundling-in Server Assets Into an App Statically]: #bundling-in-server-assets-into-an-app-statically
224
225
225
226
The assets to be served by the server may come to the target device in different
226
227
ways, for example, they may be generated during the app' s runtime, or downloaded
@@ -397,6 +398,15 @@ _etc._ functionality for selected routes.
397
398
398
399
** BEWARE:** _As of now, props and locks are not supported._
399
400
401
+ ** BEWARE:** _If you have set up the server to serve static assets bundled into
402
+ the app, the chances are your server works with a readonly location on most
403
+ platforms (in the case of Android it is anyway necessary to unpack bundled
404
+ assets to the regular filesystem, thus there the server might be serving
405
+ from a writeable location already). The easiest way around it is to use
406
+ [mod_alias][Enabling Alias module] to point URLs configured for [mod_webdav]
407
+ to a writeable filesystem location, different from that of the served static
408
+ assets._
409
+
400
410
To enable [mod_webdav] in the library you need (1) configure your host RN app
401
411
to build Lighttpd with [mod_webdav] included; (2) opt-in to use it for selected
402
412
routes when you create [Server] instance, using ` extraConfig` option.
0 commit comments