Skip to content

Commit aa789f6

Browse files
authored
fix: frontend build (#5586)
* Tricky bug, where the turbo cache is replaying old builds because it doesn't know things in Plasmic have changed.
1 parent 399cc84 commit aa789f6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

apps/frontend/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
"scripts": {
88
"build": "pnpm build:next",
99
"build:next": "next build",
10-
"build:prod": "pnpm build:next",
1110
"codegen": "pnpm supabase:codegen && pnpm graphql:codegen && pnpm graphql:rover",
12-
"deploy": "pnpm build:prod",
11+
"deploy": "pnpm build:next",
1312
"dev": "pnpm codegen && next dev",
1413
"graphql:codegen": "dotenv -e .env.local -- graphql-codegen --require tsconfig-paths/register --config ./lib/graphql/codegen.ts && prettier --write ./lib/graphql/codegen.ts",
1514
"graphql:rover": "rover supergraph compose --elv2-license 'accept' --config ./supergraph-config.yaml > ./app/api/v1/graphql/supergraph.graphql",

turbo.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@
2121
"test": {},
2222
"@opensource-observer/frontend#build": {
2323
"dependsOn": ["^build"],
24-
"outputs": ["out/**", ".next/**"],
24+
"outputs": ["out/**", ".next/**", "!.next/cache/**"],
2525
"env": ["PLASMIC_PROJECT_ID", "PLASMIC_PROJECT_API_TOKEN"],
2626
"cache": false
2727
},
2828
"@opensource-observer/frontend#deploy": {
2929
"dependsOn": ["^build"],
30-
"outputs": ["dist/**", ".next/**", "!.next/cache/**"]
30+
"outputs": ["out/**", ".next/**", "!.next/cache/**"],
31+
"env": ["PLASMIC_PROJECT_ID", "PLASMIC_PROJECT_API_TOKEN"],
32+
"cache": false
3133
},
3234
"@opensource-observer/hasura-clickhouse#sync": {}
3335
}

0 commit comments

Comments
 (0)