api-core-lib 12.0.34 → 12.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +2 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -73,13 +73,13 @@ async function runGenerator(options) {
|
|
|
73
73
|
console.log(import_chalk.default.gray(`Output directory: ${options.output}`));
|
|
74
74
|
console.log(import_chalk.default.gray(`.env path: ${options.envPath}`));
|
|
75
75
|
import_dotenv.default.config({ path: options.envPath });
|
|
76
|
-
const apiUrl = process.env.
|
|
76
|
+
const apiUrl = process.env.API_URL_CONFIG;
|
|
77
77
|
if (!apiUrl) {
|
|
78
78
|
console.error(import_chalk.default.red("Error: API_URL or NEXT_PUBLIC_API_URL not found in .env file."));
|
|
79
79
|
process.exit(1);
|
|
80
80
|
}
|
|
81
81
|
try {
|
|
82
|
-
const specUrl = `${apiUrl}
|
|
82
|
+
const specUrl = `${apiUrl}`;
|
|
83
83
|
console.log(`Fetching OpenAPI spec from ${specUrl}...`);
|
|
84
84
|
const response = await import_axios.default.get(specUrl);
|
|
85
85
|
const spec = response.data;
|