You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/middleware.md
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,45 @@ Arkstack applies middleware in this order during `app.boot(port)`:
27
27
5.`after` middleware runs.
28
28
6. Runtime-specific startup continues (Express error handler registration, then server start).
29
29
30
+
## Static asset mounting
31
+
32
+
Static assets are mounted by the runtime driver before configured middleware runs.
33
+
34
+
Default locations:
35
+
36
+
- Express: `path.join(process.cwd(), 'public')`
37
+
- H3: `process.cwd()/public`
38
+
39
+
Use this default behavior when your app only needs a conventional `public` directory. If you need a different mount path, cache policy, or asset strategy, override `mountPublicAssets` when constructing the driver in `src/core/app.ts`.
0 commit comments