Skip to content

Commit

Permalink
setup frontend deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
nikgraf committed Jun 11, 2024
1 parent 736108b commit 96b3f35
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-web-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Generate Prisma Client
run: cd ../server && yarn prisma generate
- name: Install Vercel CLI
run: npm install --global vercel@canary
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
Expand Down
1 change: 1 addition & 0 deletions apps/app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ web-build/
# macOS
.DS_Store

.vercel
12 changes: 4 additions & 8 deletions apps/app/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"assetBundlePatterns": [
"**/*"
],
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "app.lini.app"
Expand All @@ -27,12 +25,10 @@
}
},
"web": {
"favicon": "./assets/images/favicon.png"
"favicon": "./assets/images/favicon.png",
"bundler": "metro"
},
"plugins": [
"expo-router",
"expo-secure-store"
],
"plugins": ["expo-router", "expo-secure-store"],
"extra": {
"router": {
"origin": false
Expand Down
13 changes: 13 additions & 0 deletions apps/app/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"buildCommand": "npx expo export -p web",
"outputDirectory": "dist",
"devCommand": "expo",
"cleanUrls": true,
"framework": null,
"rewrites": [
{
"source": "/:path*",
"destination": "/"
}
]
}

0 comments on commit 96b3f35

Please sign in to comment.