更新
This commit is contained in:
@@ -7,7 +7,9 @@ server {
|
||||
|
||||
# Serve static files
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
# Try to serve the exact file, then directory, otherwise fall back to index.html
|
||||
# This ensures accessing / or any SPA route returns /index.html
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# Proxy API requests to backend container
|
||||
|
||||
Reference in New Issue
Block a user