Skip to content

Commit d02b3d5

Browse files
committed
rename
1 parent 5713376 commit d02b3d5

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
NEXT_PUBLIC_BASE_PATH=/CUA-Trace-Viewer
1+
NEXT_PUBLIC_BASE_PATH=/macos

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ A web-based visualization tool for Computer Use Agent traces, displaying the age
2323
### 1. Clone the Repository
2424

2525
```bash
26-
git clone https://github.com/Computer-use-agents/CUA-Trace-Viewer.git
27-
cd CUA-Trace-Viewer
26+
git clone https://github.com/Computer-use-agents/macos.git
27+
cd macos
2828
```
2929

3030
### 2. Install Dependencies

app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function RootLayout({
1818
<meta name="viewport" content="width=device-width, initial-scale=1" />
1919
<link
2020
rel="stylesheet"
21-
href={process.env.NODE_ENV === 'production' ? '/CUA-Trace-Viewer/_next/static/css/app/layout.css' : '/_next/static/css/app/layout.css'}
21+
href={process.env.NODE_ENV === 'production' ? '/macos/_next/static/css/app/layout.css' : '/_next/static/css/app/layout.css'}
2222
/>
2323
</head>
2424
<body>{children}</body>

app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import trace6Data from '../src/data/trace6.json';
1313
import trace7Data from '../src/data/trace7.json';
1414

1515
// 获取basePath
16-
const basePath = process.env.NODE_ENV === 'production' ? '/CUA-Trace-Viewer' : '';
16+
const basePath = process.env.NODE_ENV === 'production' ? '/macos' : '';
1717

1818
// 修正图片和视频路径
1919
const fixAssetPaths = (data: TraceData): TraceData => {

next.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
const nextConfig = {
33
reactStrictMode: true,
44
output: 'export',
5-
basePath: process.env.NODE_ENV === 'production' ? '/CUA-Trace-Viewer' : '',
6-
assetPrefix: process.env.NODE_ENV === 'production' ? '/CUA-Trace-Viewer/' : '',
5+
basePath: process.env.NODE_ENV === 'production' ? '/macos' : '',
6+
assetPrefix: process.env.NODE_ENV === 'production' ? '/macos/' : '',
77
images: {
88
remotePatterns: [],
99
unoptimized: true,
@@ -15,7 +15,7 @@ const nextConfig = {
1515
loader: 'file-loader',
1616
options: {
1717
publicPath: process.env.NODE_ENV === 'production'
18-
? '/CUA-Trace-Viewer/_next/static/media/'
18+
? '/macos/_next/static/media/'
1919
: '/_next/static/media/',
2020
outputPath: 'static/media/',
2121
name: '[name].[hash].[ext]',
@@ -26,7 +26,7 @@ const nextConfig = {
2626
return config;
2727
},
2828
env: {
29-
NEXT_PUBLIC_BASE_PATH: process.env.NODE_ENV === 'production' ? '/CUA-Trace-Viewer' : '',
29+
NEXT_PUBLIC_BASE_PATH: process.env.NODE_ENV === 'production' ? '/macos' : '',
3030
},
3131
trailingSlash: true,
3232
};

0 commit comments

Comments
 (0)