azure-functions-bridge

0.1.4 • Public • Published

<⚡> Azure Functions Bridge

A bridge to Nuxt-based apps works in Azure Functions.

⚠️ this is a beta version

  • 🚀 Blazing fast
  • 🦄 Built for fast prototype
  • 🔥 Express behind the scenes

How to install

npm install azure-functions-bridge
# or with yarn 
yarn add azure-functions-bridge

Usage

your-function-file.js

const { Nuxt } = require('nuxt');
const Bridge = require('azure-functions-bridge');
 
const config = require('./nuxt.config');
const nuxt = new Nuxt(config);
 
const bridge = new Bridge({
  nuxt,
  root: '/', // Root url
  fnName: 'NuxtApp', // Function name
});
 
module.exports = async function (context) {
  const response = await bridge.launcher(context);
  context.res = response;
};

Readme

Keywords

Package Sidebar

Install

npm i azure-functions-bridge

Weekly Downloads

11

Version

0.1.4

License

MIT

Unpacked Size

3.45 kB

Total Files

3

Last publish

Collaborators

  • halfeld