pivot: migrate V1 mobile from Docker to Netlify serverless
- 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
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
# ── 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"
|
||||
Reference in New Issue
Block a user