-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnetlify.toml
More file actions
26 lines (23 loc) · 964 Bytes
/
Copy pathnetlify.toml
File metadata and controls
26 lines (23 loc) · 964 Bytes
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
# Netlify deploy config — unified app (apps/web). One Netlify site serves all
# three zones:
# / marketing site
# /portal/* student portal
# /dashboard/* admin dashboard
#
# This is an npm-workspaces monorepo: the package-lock.json lives at the repo
# root. Netlify detects the workspace root from the lockfile and runs install
# there, then builds the package at `base`. The Next.js runtime plugin wires up
# the serverless/edge functions, middleware (proxy.ts), image optimization and
# caching automatically.
[build]
base = "apps/web"
command = "npm run build"
# Paths in netlify.toml are relative to `base`, so this is apps/web/.next.
# Must NOT be "apps/web/.next" (the plugin would double it to
# apps/web/apps/web/.next) and must NOT be empty (defaults to base → error).
publish = ".next"
[build.environment]
# Next.js 16 requires Node >= 20.9.
NODE_VERSION = "20"
[[plugins]]
package = "@netlify/plugin-nextjs"