Skip to content

Commit d2d9084

Browse files
authored
Merge pull request #4 from rasenga223/feature/old-version
Feature/old version
2 parents bd456c0 + df9cd3d commit d2d9084

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

.github/workflows/preview.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Vercel Preview Deployment
2+
env:
3+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
4+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
5+
on:
6+
push:
7+
branches-ignore:
8+
- main
9+
jobs:
10+
Deploy-Preview:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Install Vercel CLI
15+
run: npm install --global vercel@latest
16+
- name: Pull Vercel Environment Information
17+
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
18+
- name: Build Project Artifacts
19+
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
20+
- name: Deploy Project Artifacts to Vercel
21+
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
"build:prod": "next build",
1313
"start": "next start",
1414
"lint": "next lint",
15-
"lint:fix": "next lint --fix",
16-
"postinstall": "npm rebuild"
15+
"lint:fix": "next lint --fix"
1716
},
1817
"dependencies": {
1918
"@dnd-kit/core": "^6.3.1",

vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": 2,
33
"buildCommand": "npm run build",
44
"devCommand": "next dev",
5-
"installCommand": "npm install && npm rebuild",
5+
"installCommand": "npm install && npm run build",
66
"framework": "nextjs",
77
"regions": ["iad1"],
88
"git": {

0 commit comments

Comments
 (0)