Skip to content

Commit 8632178

Browse files
committed
Update Navbar and DownloadPage to hide download link in Electron app
- Add Electron detection to DownloadPage - Show friendly message when accessed from desktop app - Hide Download link in Navbar when running in Electron - Add vercel.json configuration for deployment - Update build script for Vercel compatibility
1 parent 05317ac commit 8632178

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"scripts": {
4141
"start": "react-scripts start",
4242
"build": "react-scripts build",
43-
"vercel-build": "CI=false react-scripts build",
43+
"vercel-build": "react-scripts build",
4444
"test": "react-scripts test",
4545
"eject": "react-scripts eject",
4646
"electron": "electron .",

frontend/vercel.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"framework": "create-react-app",
3+
"buildCommand": "npm run build",
4+
"outputDirectory": "build",
5+
"installCommand": "npm install",
6+
"devCommand": "npm start",
7+
"env": {
8+
"CI": "false"
9+
},
10+
"build": {
11+
"env": {
12+
"CI": "false"
13+
}
14+
},
15+
"rewrites": [
16+
{
17+
"source": "/(.*)",
18+
"destination": "/index.html"
19+
}
20+
]
21+
}

0 commit comments

Comments
 (0)