[GH-ISSUE #7] suggestion: support SPA fallback in duf #8

Closed
opened 2026-04-08 16:49:46 +03:00 by zhus · 1 comment
Owner

Originally created by @piaoger on GitHub (Jun 2, 2022).
Original GitHub issue: https://github.com/sigoden/dufs/issues/7

It can be very useful to setup a simple server for SPA (Single Page Application)

  1. similar to "--spa" switch in miniserve
  2. try_files in Nginx
location / {
    root .../dist
    index ...index.html
    try_files $uri $uri/ /index.html;
}
Originally created by @piaoger on GitHub (Jun 2, 2022). Original GitHub issue: https://github.com/sigoden/dufs/issues/7 It can be very useful to setup a simple server for SPA (Single Page Application) 1. similar to "--spa" switch in miniserve 2. try_files in Nginx ```nginx location / { root .../dist index ...index.html try_files $uri $uri/ /index.html; } ```
zhus closed this issue 2026-04-08 16:49:46 +03:00
Author
Owner

@sigoden commented on GitHub (Jun 2, 2022):

Already implemented at 830d3343f4

<!-- gh-comment-id:1144575690 --> @sigoden commented on GitHub (Jun 2, 2022): Already implemented at 830d3343f40
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#8