Skip to content

Conversation

asad-devx
Copy link
Contributor

No description provided.

.build();

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

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