Skip to content

Commit

Permalink
chore: use api env path to generate api code
Browse files Browse the repository at this point in the history
  • Loading branch information
luigibarbato committed Oct 12, 2023
1 parent 7cf33a3 commit c9f9220
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .env.dev.example
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
NEXT_PUBLIC_API_BASE=https://localhost:8080
NEXT_PUBLIC_API_BASE=https://localhost:8080
UNCONDITIONAL_API_PATH=/home/unconditional/api
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "next start",
"lint": "next lint",
"format": "npx prettier --write .",
"generate": "openapi --input /Users/luigibarbato/Dev/Projects/api/swagger.yaml --output ./generated",
"generate": "openapi --input $UNCONDITIONAL_API_PATH/api/swagger.yaml --output ./generated",
"prepare": "npx husky install"
},
"dependencies": {
Expand Down

0 comments on commit c9f9220

Please sign in to comment.