a1c5fecd83
- Switch Prisma schema from SQLite to PostgreSQL - Add netlify.toml for Netlify deployment config - Add @netlify/plugin-nextjs for serverless Next.js - Remove Docker build files (Dockerfile, docker-compose, start.sh) - Remove auto-healer and scripts directories - Update next.config.ts (remove standalone output) - Database: falah_mobile_v1 on Contabo Postgres
33 lines
852 B
TOML
33 lines
852 B
TOML
# ── Falah Mobile on Netlify ─────────────────────────────────────
|
|
# Uses @netlify/plugin-nextjs for full Next.js serverless support
|
|
|
|
[build]
|
|
command = "npm run build"
|
|
publish = ".next"
|
|
|
|
[build.environment]
|
|
NODE_VERSION = "20"
|
|
|
|
# Root redirect to /mobile (app has basePath: "/mobile")
|
|
[[redirects]]
|
|
from = "/"
|
|
to = "/mobile"
|
|
status = 301
|
|
|
|
# Everything else handled by Next.js plugin
|
|
[[redirects]]
|
|
from = "/**"
|
|
to = "/.netlify/functions/next_handler"
|
|
status = 200
|
|
|
|
# Assets cache
|
|
[[headers]]
|
|
for = "/mobile/_next/static/*"
|
|
[headers.values]
|
|
Cache-Control = "public, max-age=31536000, immutable"
|
|
|
|
# Prisma engine binary needed at runtime
|
|
[functions]
|
|
included_files = ["node_modules/.prisma/**", "node_modules/@prisma/**"]
|
|
node_bundler = "esbuild"
|