Update Apache configuration to include fallback for SPA routes and add start script in package.json for Nuxt server.
This commit is contained in:
@@ -25,10 +25,14 @@
|
||||
RewriteRule . /index.html [L]
|
||||
</Directory>
|
||||
|
||||
# API-Routes für Nuxt Server (falls Server-Side Rendering verwendet wird)
|
||||
# API-Routes für Nuxt Server
|
||||
ProxyPreserveHost On
|
||||
ProxyPass /api/ http://localhost:3100/api/
|
||||
ProxyPassReverse /api/ http://localhost:3100/api/
|
||||
|
||||
# Fallback für alle anderen Routen (SPA)
|
||||
ProxyPass / http://localhost:3100/
|
||||
ProxyPassReverse / http://localhost:3100/
|
||||
|
||||
# Redirect zu HTTPS (optional - kann später aktiviert werden)
|
||||
# RewriteEngine On
|
||||
|
||||
Reference in New Issue
Block a user