diff --git a/README.md b/README.md index 08210f9c..9428eba9 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ [![Semantic Release][semantic-release-img]][semantic-release-url] Run REST APIs and other web applications using your existing Node.js application framework (Express, Koa, Hapi, -Fastify and tRPC), on top of AWS Lambda, Huawei and many other clouds. +Fastify and tRPC), on top of AWS Lambda, Azure, Huawei and many other clouds. This library was a refactored version of [@vendia/serverless-express](https://github.com/vendia/serverless-express), I create a new way to interact and extend event sources by creating contracts to abstract the integrations between each diff --git a/www/docs/main/handlers/azure.mdx b/www/docs/main/handlers/azure.mdx index 05124268..42142a91 100644 --- a/www/docs/main/handlers/azure.mdx +++ b/www/docs/main/handlers/azure.mdx @@ -74,7 +74,7 @@ import { PromiseResolver } from '@h4ad/serverless-adapter/lib/resolvers/promise' import { HttpTriggerV4Adapter } from '@h4ad/serverless-adapter/lib/adapters/azure'; import app from './app'; -export const handler = ServerlessAdapter.new(app) +export default ServerlessAdapter.new(app) .setHandler(new AzureHandler()) .setResolver(new PromiseResolver()) // continue to set the other options here. @@ -83,6 +83,13 @@ export const handler = ServerlessAdapter.new(app) .build(); ``` +:::caution + +Be careful when exporting the handler because in azure you must `export default` and in [DefaultHandler](./default) +you must `export const handler`. + +::: + The above code will add support for Azure Http Trigger V4, to learn more about Http Trigger, see the [adapter docs](../adapters/azure/http-trigger-v4). :::caution Attention diff --git a/www/docusaurus.config.js b/www/docusaurus.config.js index 2bafcf7e..1f76833e 100644 --- a/www/docusaurus.config.js +++ b/www/docusaurus.config.js @@ -8,7 +8,7 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula'); const config = { title: 'Serverless Adapter', tagline: - 'Run REST APIs and other web applications using your existing Node.js application framework (NestJS, Express, Koa, Hapi, Fastify and many others), on top of AWS, Huawei and many other clouds.', + 'Run REST APIs and other web applications using your existing Node.js application framework (NestJS, Express, Koa, Hapi, Fastify and many others), on top of AWS, Azure, Huawei and many other clouds.', url: 'https://h4ad.github.io/serverless-adapter', baseUrl: '/serverless-adapter/', onBrokenLinks: 'throw', diff --git a/www/src/components/HomepageFeatures/index.tsx b/www/src/components/HomepageFeatures/index.tsx index 2094a820..9d18fe3e 100644 --- a/www/src/components/HomepageFeatures/index.tsx +++ b/www/src/components/HomepageFeatures/index.tsx @@ -18,8 +18,8 @@ const FeatureList: FeatureItem[] = [ title: 'One library, many Serverless environments', description: ( <> - We currently support AWS and Huawei, but in the future we will add - support for Azure, GCP and many other serverless environments. + We currently support AWS, Azure and Huawei, but in the future we will add + support for GCP and many other serverless environments. ), },