Skip to content

Commit 6b739ae

Browse files
committed
refactor(workflow): Remove static build command and streamline deployment process
- Eliminated the 'build:static' script from package.json to simplify the build process. - Updated the deployment workflow to use the 'build' command instead of 'build:static', ensuring a more straightforward deployment without static export. - These changes enhance the clarity and efficiency of the deployment process by focusing on the primary build command.
1 parent fc2710f commit 6b739ae

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
env:
5858
NEXT_PUBLIC_BASE_URL: ${{ env.NEXT_PUBLIC_BASE_URL }}
5959
NEXT_PUBLIC_API_URL: ${{ env.NEXT_PUBLIC_API_URL }}
60-
run: yarn build:static
60+
run: yarn build
6161

6262
# Retrieve the S3 bucket name and CloudFront distribution from your CF stack
6363
- name: Get Stack Outputs

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint",
10-
"build:static": "next build && next export",
1110
"serve": "npx serve out"
1211
},
1312
"dependencies": {

0 commit comments

Comments
 (0)