0.1.4 ā€¢ Published 5 years ago

azure-functions-bridge v0.1.4

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

<āš”> 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;
};
0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago