-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
122 lines (82 loc) · 2.01 KB
/
notes.txt
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
ONDO FINANCE
1 Ondo Short-Term US Government Bond Fund
2 Ondo US Dollar Yield
product
tech
ondo_short_term_us_government_bond_fund
ondo_us_dollar_yield
URL
ondo-finance-ad282fc
RESOURCES
https://github.com/code-423n4/2024-03-ondo-finance
https://github.com/amr080/2023-09-ondo
https://github.com/X-Financial-Technologies/Library/tree/main/Ondo%20Finance
VERCEL FOR HOSTING
Next.js
X - 32695b
x/blog.ondo.finance/content/media/2025/02/Ondo-Rebrand.mp4
git lfs install
git lfs track "*.mp4"
git add .gitattributes
find x/docs.ondo.finance/ -type f -name "*.html" | sed 's|x/docs.ondo.finance/||'
# Create vercel.json in root
cat > vercel.json << 'EOF'
{
"cleanUrls": true,
"trailingSlash": false,
"redirects": [
{
"source": "/x/ondo.finance",
"destination": "/x/ondo.finance/index.html"
}
]
}
EOF
# Create public directory and move static files
cd x/ondo.finance
mkdir -p public/_next
mv _next/* public/_next/
mv icon.svg8db0fc230e9baadd public/icon.svg
# Update paths in index.html
sed -i 's/\"_next/\"\/x\/ondo.finance\/_next/g' index.html
sed -i 's/icon.svg8db0fc230e9baadd/\/x\/ondo.finance\/icon.svg/g' index.html
# Move back to root and commit
cd ../..
git add .
git commit -m "Fix static file paths for vercel deployment"
git push
{
"cleanUrls": true,
"trailingSlash": true,
"redirects": [
{
"source": "/x/ondo.finance",
"destination": "/x/ondo.finance/",
"permanent": true
}
],
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
}
],
"basePath": "/x/ondo.finance"
}
# Create new orphan branch (no parent commit)
git checkout --orphan web-20250208
# Remove all files from staging
git rm -rf .
# Create empty commit
git commit --allow-empty -m "Initial commit"
# Push new empty branch
git push origin web-20250208