Fix production deploy under /admin/ with correct Vite base path and server config.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-03 14:28:06 +02:00
co-authored by Cursor
parent a8501f4604
commit 32c15dbd1d
4 changed files with 40 additions and 4 deletions
+18
View File
@@ -0,0 +1,18 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /admin/
# Serve existing files and directories
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# SPA fallback
RewriteRule ^ index.html [L]
</IfModule>
<IfModule mod_mime.c>
AddType application/javascript .js
AddType text/css .css
AddType application/wasm .wasm
</IfModule>