Fix: 404 beim Nachladen auf jamulix.de/ beseitigt
Unter / lädt Next.js die RSC-Segmente ohne basePath (/__next.*.txt). Die Deploy-Skripte verlinken diese Dateien jetzt wie index.html in den Webroot. Vercel Analytics entfernt (funktioniert nur auf Vercel). README angepasst. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
74b8d18991
commit
30d87187cd
1 changed files with 14 additions and 2 deletions
|
|
@ -103,6 +103,8 @@ Die E-Mail im Footer (`footer.tsx`) wird als Prop von `app/page.tsx` übergeben:
|
|||
- rsync nach `jamulix.de:/var/www/jamulix.de/html/landingpage/`
|
||||
- Setzt Symlink: `/var/www/jamulix.de/html/index.html` → `landingpage/index.html`
|
||||
(nginx folgt dem Link und liefert die Landingpage direkt unter `https://jamulix.de/` aus)
|
||||
- Setzt Symlinks `__next.*.txt` → `landingpage/__next.*.txt` (Next.js lädt unter `/` die
|
||||
RSC-Segmente ohne basePath; ohne die Links gibt es 404 im Netzwerk-Tab)
|
||||
- Kopiert die Fehlerseiten `landingpage/<code>.html` in den Webroot
|
||||
|
||||
### Localhost (zum Testen)
|
||||
|
|
@ -113,6 +115,7 @@ Die E-Mail im Footer (`footer.tsx`) wird als Prop von `app/page.tsx` übergeben:
|
|||
|
||||
- rsync nach `/var/www/html/landingpage/`
|
||||
- Symlink: `/var/www/html/index.html` → `landingpage/index.html`
|
||||
- Symlinks: `/var/www/html/__next.*.txt` → `landingpage/__next.*.txt`
|
||||
- Kopiert die Fehlerseiten in den Webroot
|
||||
- `sudo chown -R www-data:www-data`
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue