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
|
|
@ -18,6 +18,13 @@ echo "Setze symbolischen Link: index.html → landingpage/index.html"
|
|||
sudo rm -f /var/www/html/index.html
|
||||
sudo ln -s landingpage/index.html /var/www/html/index.html
|
||||
|
||||
# Next.js lädt unter / die RSC-Segmente ohne basePath (/__next.*.txt) — ebenfalls verlinken
|
||||
echo "Setze symbolische Links: __next.*.txt → landingpage/__next.*.txt"
|
||||
sudo rm -f /var/www/html/__next.*.txt
|
||||
for f in landingpage/__next.*.txt; do
|
||||
sudo ln -s "$f" "/var/www/html/$(basename "$f")"
|
||||
done
|
||||
|
||||
echo "Kopiere Fehlerseiten: landingpage/<code>.html → <code>.html"
|
||||
for c in $ERROR_PAGES; do
|
||||
sudo cp "landingpage/$c.html" "/var/www/html/$c.html"
|
||||
|
|
|
|||
Loading…
Reference in a new issue