question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NestJS 7 + Azure Func

See original GitHub issue

Infinity load.

GET http://localhost:7071/api/swagger-ui-init.js net::ERR_ABORTED 404 (Not Found)

main.azure.ts

...
// SWAGGER CONFIGURATION
 const options = new DocumentBuilder()
   .setTitle('Test')
   .setDescription('API Documentation')
   .setVersion('1.0')
   .addBearerAuth()
   .build();

 // RUN SWAGER
 const document = SwaggerModule.createDocument(app, options);
 SwaggerModule.setup('api', app, document);
...

package.json

...
"@azure/functions": "^1.0.3",
"@nestjs/azure-func-http": "^0.5.0",
"@nestjs/swagger": "^4.5.5",
"swagger-ui-express": "^4.1.4",
...

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
felipecrscommented, Jun 2, 2020

Repository for reproduction: https://github.com/felipecassiors/nestjs-swagger-azure-func

And you can try it right now in Gitpod: https://gitpod.io/#https://github.com/felipecassiors/nestjs-swagger-azure-func

Just run:

npm install
npm run azure:start

See it works with nest start cLdOLUPefb

But not with func host start JOJ0ZdmSow

3reactions
jacobdo2commented, May 22, 2020

Any luck on updating this? having the same issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

azure-func-http/README.md at master - GitHub
A progressive Node.js framework for building efficient and scalable server-side applications. NPM Version Package License NPM Downloads Travis Linux Coverage ...
Read more >
Deploy NestJS App to Azure Functions - YouTube
In this tutorial we are going to deploy nestJs application to Azure functions and we will learn about using nvm, func, Azure tools...
Read more >
@nestjs/azure-func-http - npm
Nest - modern, fast, powerful node.js web framework (@azure-func-http). Latest version: 0.8.0, last published: a year ago.
Read more >
Deploy NestJS Serverless Apps to Azure Functions - Trilon
Azure Functions are a serverless computing execution service that enables you to run code on-demand without having to manage the allocation of ...
Read more >
How to deploy a REST API to Azure Functions with Azure SQL
Deploying to Azure Functions · 7. Create a storage account · 8. Create the function app · 9. Set the DATABASE_URL environment variable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found