Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang committed Dec 18, 2023
1 parent 5641e0d commit 475ff04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ GITLAB_CLIENT_ID="***"
GITLAB_CLIENT_SECRET="***"
COVERAGE_DATA_URL=http://s3.xxx
REDIRECT_URI=http://localhost:3000/login

UPLOAD_URL=http://localhost:3000
4 changes: 2 additions & 2 deletions packages/canyon-backend/src/upload/upload.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export class UploadController {

// 第一个参数 resultURL
// 第二个参数 putURL
return `http://localhost:8080/upload/v41234
http://localhost:8080/upload/v4?query=1`;
return `${process.env.UPLOAD_URL}/upload/query
${process.env.UPLOAD_URL}/upload/v4?query=1`;
}
@Put('v4')
@HttpCode(200)
Expand Down

0 comments on commit 475ff04

Please sign in to comment.