Skip to content

Commit 706197d

Browse files
committed
chore: clean up Next.js configuration and deployment workflow
- Removed asset prefix configuration from Next.js settings to simplify the setup. - Eliminated SSH deployment steps from the GitHub Actions workflow to streamline the deployment process.
1 parent 1d8b3f1 commit 706197d

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,3 @@ jobs:
3232
source: "out/,public/,package.json"
3333
target: "~/hyperdrift/yieldmax"
3434
strip_components: 0
35-
36-
- name: SSH into server and restart application
37-
uses: appleboy/ssh-action@master
38-
with:
39-
host: 69.62.124.138
40-
username: yannvr
41-
key: ${{ secrets.SSH_PRIVATE_KEY }}
42-
script: |
43-
cd ~/hyperdrift/yieldmax
44-
bun install --production
45-
# Make sure serve is installed
46-
bun add serve
47-
# Restart or start the application using PM2
48-
pm2 restart yieldmax || pm2 start "bun run start" --name "yieldmax" --env production

next.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ const nextConfig = {
1414
},
1515
],
1616
},
17-
// Configure asset prefix for production
18-
assetPrefix: process.env.NODE_ENV === 'production' ? 'https://yieldmax.xyz' : '',
1917
// Skip type checking during build
2018
typescript: {
2119
ignoreBuildErrors: true,
@@ -24,7 +22,6 @@ const nextConfig = {
2422
ignoreDuringBuilds: true,
2523
},
2624
// Enable trailing slash to prevent mismatches in exported static files
27-
2825
trailingSlash: true,
2926
};
3027

0 commit comments

Comments
 (0)