-
Notifications
You must be signed in to change notification settings - Fork 9
Staging to main #424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Staging to main #424
Changes from all commits
5f13e5a
3872ac0
60812b3
93acf41
72d3e40
46e4d18
e47d0c9
d5cc800
6bd6db5
ce713c4
3fb30bc
6ac6ff3
825c1c3
e3f4d3f
be8b5ef
b1ad7ac
1ee228f
32ddd69
734f185
b60ed6b
47a3955
e288929
e3c29ea
c7a333c
47eac44
f1b9a5f
d9cd04a
f4628f2
2cd59f7
1735076
5839c5a
8463bf9
628e1f5
4ac12f3
912989c
8508957
3d9296f
d06d516
cc70fc4
468bc67
080d7cf
fd5a808
cecf131
4fea210
9779b89
0a010a1
a196d81
70df0eb
e4b8c17
b3ef4e1
ac4953d
533238d
8f1b71d
48797d8
94839df
7ed2e39
e10f376
6f00be7
4b8ed8a
7da33ba
e141781
cfa5816
7959ea7
8cb25b9
87d107f
b53d8f0
c16a243
0df8c93
c00e931
22e0355
9bdfee2
2791876
499699d
314a6ce
6aaf90d
cdb30ed
1636fd7
aa5fc94
2de75dc
a5384d9
7160c5a
2ece8ea
d050e2e
d892180
1fa48f9
18b86d7
37121e3
7c5b8ab
45ab6f3
43d1796
bd58e8a
741684a
0f8a0ed
5b3d0a7
784e153
ca9adf2
f4e4c77
508ff48
adda9b6
1dd21bc
25e240e
ae634ca
c8d2c85
ac8eddc
bca5161
a2e6893
9857348
d669274
bd19e55
33f8f47
0b31d20
c68e85b
18e232c
6b422e5
89b9ef7
5aa9457
8fb72cf
a03cb0e
a00a69a
032acc3
574fc0d
8303532
1f7abd8
89f74e1
a4a1058
890bcfb
9a69b2e
c8ce980
90ed888
7298913
056de43
588c496
e5c42b2
3da83b1
2bdee51
0bc35ec
5f152f5
233a22a
94adb88
73e1234
26cef56
f42aa72
8895468
ea7700f
fd126fc
72f1eda
9664282
be748eb
a8d4aac
b3019e1
0655644
a82653f
78ca8d6
a973c6e
53031d1
a38ef49
532f2a3
bd0a623
cca01cc
c965951
46fe0f6
b648397
e3f4dc5
db71367
613f73b
8da0469
d98829d
0a16f87
b76cab6
0538f92
70893ba
ef827dd
4c1dcbf
e0900f7
1b41069
7f9a8c8
82498f3
b6342f9
109c75e
e609a03
06cc8b9
64e1f60
fccb7da
027701d
76f8583
586aab0
da2d698
5b72521
2a852c2
25e8446
71b49d1
821373e
fe8216f
a47f00c
3b1b7a1
f129562
c74473b
e5483b1
70baf15
846857f
0ea5ee2
8516ffd
111b32d
4ce98bf
e281cec
618f912
3103088
3cc24ed
6e5c853
a7ae79f
3e74a17
8ed183c
64f4b3a
ef7121d
1ce2868
67f8985
cfc60a2
0ce59da
318e322
267af68
f5ad421
ba4cb82
0fc0ebc
110b43f
5733bbe
b48b9e6
d583f7d
4d21777
26942f5
0f697f3
607e1d3
75477c3
a4f0df3
96b865c
8498af5
4a2d403
afbe26a
a8bca6c
2f7f8ab
1043a07
5886e0b
4fa572f
a790e24
0825904
e041fbc
4414fe0
b7c1c90
3041f9c
d02d71a
7917b92
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -14,8 +14,12 @@ export const envConfig: EnvConfig = { | |||||
| }, | ||||||
|
|
||||||
| core: { | ||||||
| namespaceRoot: { | ||||||
| contract: { accountId: "potlock.near" }, | ||||||
| }, | ||||||
|
|
||||||
| campaigns: { | ||||||
| contract: { accountId: "campaigns.potlock.near" }, | ||||||
| contract: { accountId: "v1.campaigns.staging.potlock.near" }, | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainProduction config points to a staging contract — likely misconfiguration This sets the mainnet production env to use Apply this diff to point to the expected production v1 contract (adjust if your canonical prod account differs): - contract: { accountId: "v1.campaigns.staging.potlock.near" },
+ contract: { accountId: "v1.campaigns.potlock.near" },Run to sanity-check no staging refs remain in the production config: Add a CI guard that fails if 🏁 Script executed: #!/bin/bash
set -euo pipefail
rg -n "staging\.potlock\.near" src/common/_config/production.env-config.ts && {
echo "ERROR: Staging reference found in production env-config."
exit 1
} || echo "OK: No staging refs in production env-config."Length of output: 127 Replace staging contract reference in production config Line 18 of - contract: { accountId: "v1.campaigns.staging.potlock.near" },
+ contract: { accountId: "v1.campaigns.potlock.near" },And add a CI guard to fail if any 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| }, | ||||||
|
|
||||||
| donation: { | ||||||
|
|
@@ -43,6 +47,7 @@ export const envConfig: EnvConfig = { | |||||
| }, | ||||||
|
|
||||||
| social: { | ||||||
| platformName: "NEAR Social", | ||||||
| app: { url: "https://near.social" }, | ||||||
| contract: { accountId: "social.near" }, | ||||||
| }, | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
TipTap in Next.js: ensure client-only usage or dynamic import to avoid SSR crashes
TipTap relies on DOM APIs. If used during SSR, it can throw (window/document undefined). Verify rich text components import TipTap only on the client (e.g., "use client" + dynamic(() => import(...), { ssr: false })).
Run this quick audit:
Expected:
🏁 Script executed:
Length of output: 2173
🏁 Script executed:
Length of output: 15849
TipTap requires client-only rendering — mark the component as client or load it with ssr:false
Found @tiptap usage that runs DOM APIs in src/common/ui/form/components/richtext.tsx but the file has no "use client" directive and isn't dynamically imported — this will break SSR.
Quick fixes (choose one):
+ "use client"; import { useCallback, useEffect, useMemo, useRef } from "react"; import Link from "@tiptap/extension-link"; import { EditorContent, useEditor } from "@tiptap/react"; import StarterKit from "@tiptap/starter-kit";🤖 Prompt for AI Agents