-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnetlify.toml
More file actions
30 lines (28 loc) · 1.52 KB
/
Copy pathnetlify.toml
File metadata and controls
30 lines (28 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Netlify auto-configures the Next.js/OpenNext adapter the rest of the way
# (publish directory and server handler are handled by the adapter). The
# `[build]` section only pins the build command so one-click clones are
# configured; the main site's headers, redirects, and site-specific settings
# stay UI-managed (see the Netlify site's Build & deploy settings).
#
# PDF generation is fully client-side (see lib/print-pdf.ts), so the server
# handler no longer carries Chromium/Playwright, which keeps the bundle well
# under Netlify's per-function size limit.
#
# NOTE: `[functions] included_files` is NOT a way to shrink the handler — the
# Next.js plugin treats it as an additive file list only (`!` exclusion globs
# are ignored for the traced handler bundle), so it's intentionally not used
# here.
[build]
# `db:setup` applies Prisma migrations and the admin seed (idempotent).
# A database is required: the build fails loudly if DATABASE_URL is missing
# or the database cannot be prepared.
command = "npm run db:setup && npm run build"
# Prompts one-click deployers for required environment variables. The values
# entered are stored as site-env vars, never committed. Users supply their own
# Postgres URL and secret; AUTH_SESSION_MAX_AGE defaults to 86400 when unset.
[template.environment]
DATABASE_URL = "your PostgreSQL connection string"
AUTH_SECRET = "random secret, e.g. openssl rand -base64 32"
AUTH_SESSION_MAX_AGE = "86400"
SEED_USER_EMAIL = "admin@example.com"
SEED_USER_PASSWORD = "choose-a-strong-password"