Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VCCI-News
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Văn Hoàng
VCCI-News
Commits
7a451864
Commit
7a451864
authored
Aug 11, 2026
by
Lê Bảo Hồng Đức
☄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix gen api
parent
3e1d1502
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1148 additions
and
62 deletions
+1148
-62
swagger-output.json
openapi/swagger-output.json
+1141
-62
orval.config.ts
orval.config.ts
+7
-0
No files found.
openapi/swagger-output.json
View file @
7a451864
This diff is collapsed.
Click to expand it.
orval.config.ts
View file @
7a451864
...
@@ -28,8 +28,15 @@ const backendHost = process.env.NEXT_PUBLIC_BACKEND_HOST;
...
@@ -28,8 +28,15 @@ const backendHost = process.env.NEXT_PUBLIC_BACKEND_HOST;
const
siteURL
=
process
.
env
.
NEXT_PUBLIC_FRONTEND_HOST
;
const
siteURL
=
process
.
env
.
NEXT_PUBLIC_FRONTEND_HOST
;
const
swaggerCandidates
=
[
const
swaggerCandidates
=
[
// 1) Explicit override (highest priority)
process
.
env
.
ORVAL_SWAGGER_URL
,
process
.
env
.
ORVAL_SWAGGER_URL
,
// 2) Sibling backend repo (local dev with both repos checked out)
path
.
resolve
(
process
.
cwd
(),
".."
,
"vietprodev-cms-backend"
,
"storage"
,
"swagger"
,
"swagger-output.json"
),
path
.
resolve
(
process
.
cwd
(),
".."
,
"vietprodev-cms-backend"
,
"storage"
,
"swagger"
,
"swagger-output.json"
),
// 3) Committed spec in repo — deterministic source for CI builds.
// Must be tried BEFORE HTTP URLs: production backend doesn't serve swagger
// and ${backendHost}/swagger/swagger-output.json may return a stale/wrong spec.
path
.
resolve
(
process
.
cwd
(),
"openapi"
,
"swagger-output.json"
),
// 4) HTTP fallbacks (last resort)
`
${
backendHost
}
/swagger-output.json`
,
`
${
backendHost
}
/swagger-output.json`
,
`
${
backendHost
}
/swagger/swagger-output.json`
,
`
${
backendHost
}
/swagger/swagger-output.json`
,
`
${
backendHost
}
/swagger.json`
,
`
${
backendHost
}
/swagger.json`
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment