Deployment Fix: Ensuring APK format and correct MIME type in backend

This commit is contained in:
vndangkhoa 2026-02-16 08:20:50 +07:00
parent 59290ca7f6
commit fffae35a52

View file

@ -3,6 +3,7 @@ package main
import ( import (
"log" "log"
"net/http" "net/http"
"mime"
"os" "os"
"path/filepath" "path/filepath"
"strings" "strings"
@ -18,6 +19,9 @@ import (
) )
func main() { func main() {
// Register .apk MIME type
mime.AddExtensionType(".apk", "application/vnd.android.package-archive")
// Initialize Database // Initialize Database
dbPath := os.Getenv("DATABASE_URL") dbPath := os.Getenv("DATABASE_URL")
if dbPath == "" { if dbPath == "" {