1 Commits

Author SHA1 Message Date
Your Name
c7b9ab18bb Fix static asset routing and path handling for auth/accounts/cast apps
- Fixed Next.js static asset (_next/*) routing for each app separately
- Updated app path handling to work with both /app and /app/* patterns
- Resolved 404 errors for static assets from auth, accounts, and cast apps
- Updated to version 0.1.66
2025-07-25 11:12:27 -06:00
2 changed files with 33 additions and 9 deletions

View File

@@ -7,7 +7,7 @@
"contactEmail": "contact@ente.io",
"tagline": "Open Source End-to-End Encrypted Photos & Authentication",
"upstreamVersion": "1.0.0",
"version": "0.1.64",
"version": "0.1.66",
"healthCheckPath": "/ping",
"httpPort": 3080,
"memoryLimit": 1073741824,

View File

@@ -702,14 +702,38 @@ cat > "$CADDY_CONFIG" << EOF
reverse_proxy localhost:8080
}
# Static files for Next.js assets from all apps
handle /_next/* {
# Static files for Next.js assets - handle per app
handle_path /photos/_next/* {
root * /app/web/photos
file_server
header {
Cache-Control "public, max-age=31536000"
}
}
handle_path /accounts/_next/* {
root * /app/web/accounts
file_server
header {
Cache-Control "public, max-age=31536000"
}
}
handle_path /auth/_next/* {
root * /app/web/auth
file_server
header {
Cache-Control "public, max-age=31536000"
}
}
handle_path /cast/_next/* {
root * /app/web/cast
file_server
header {
Cache-Control "public, max-age=31536000"
}
}
# Static images and assets (served from photos app by default)
handle /images/* {
@@ -735,22 +759,22 @@ cat > "$CADDY_CONFIG" << EOF
file_server
}
# Accounts app
handle_path /accounts/* {
# Accounts app - handle both /accounts and /accounts/*
handle /accounts* {
root * /app/web/accounts
try_files {path} /index.html
file_server
}
# Auth app
handle_path /auth/* {
# Auth app - handle both /auth and /auth/*
handle /auth* {
root * /app/web/auth
try_files {path} /index.html
file_server
}
# Cast app
handle_path /cast/* {
# Cast app - handle both /cast and /cast/*
handle /cast* {
root * /app/web/cast
try_files {path} /index.html
file_server