-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathschema.graphql
More file actions
22 lines (20 loc) · 993 Bytes
/
Copy pathschema.graphql
File metadata and controls
22 lines (20 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Coordinates production builds across Harper worker threads (and processes sharing a database) so the
# app is built once per instance rather than once per worker. A worker claims the per-app record with
# status "building" before compiling; sibling workers observe the fresh claim and wait rather than
# building into the same .next concurrently. Once built, `status` is "success" (with the resulting
# `buildId`) or "failure". See the build() coordination logic in src/plugin.ts.
type NextBuildInfo @table(database: "harperfast_nextjs", table: "nextjs_build_info") {
appName: String @primaryKey
buildId: String
status: String
}
type NextISRCache @table(database: "harperfast_nextjs", table: "nextjs_isr_cache", expiration: 604800) {
id: String @primaryKey
data: Any
tags: [String]
lastModified: Long @updatedTime
}
type NextCacheInvalidation @table(database: "harperfast_nextjs", table: "nextjs_cache_invalidation", expiration: 604800) {
id: String @primaryKey
timestamp: Long
}