Skip to content

Auto generate swagger.json#22

Open
asad-devx wants to merge 1 commit intomasterfrom
swagger-doc-generate
Open

Auto generate swagger.json#22
asad-devx wants to merge 1 commit intomasterfrom
swagger-doc-generate

Conversation

@asad-devx
Copy link
Copy Markdown
Contributor

No description provided.

.build();

const document = SwaggerModule.createDocument(app, options);
fs.writeFileSync('./swagger.json', JSON.stringify(document, null, 2));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asad-mlbd do you want to move this file generation to a separate step?
If I remember it right, serverless environments don't give the app a write access to the file system.
So our backend will not be able to run in that environment due to that constraint. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants