-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathnetlify.toml
19 lines (15 loc) · 971 Bytes
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[build]
command = "sed -i \"s|process.env.DEPLOY_URL|'${DEPLOY_URL}'|g\" config.ts && yarn build"
publish = ".next"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF || git log -n1 | egrep '\[(skip build|skip deploy|skip ci|ci skip|no ci|skip actions|actions skip)\]'"
[[plugins]]
package = "@netlify/plugin-nextjs"
[template.environment]
NEXT_PUBLIC_COMPANY_NAME = "Company name for header"
HUB_PROJECTUID = "Project UID of your Notehub project, e.g. app:123-456-789"
HUB_AUTH_TOKEN = "Notehub API authentication token"
HUB_BASE_URL = "(optional) Base URL representing the Notehub API"
DATABASE_URL = "URL for cloud hosted database on a platform like Amazon Web Services"
DEBUG_CONFIG = "(optional) Debug config? If not '', log environment and config on server"
[context.production]
command = "sed -i \"s|process.env.DEPLOY_URL|'${DEPLOY_URL}'|g\" config.ts && yarn build && yarn run prisma db push --accept-data-loss && yarn db:init"