0.1.4 ā¢ Published 5 years ago
azure-functions-bridge v0.1.4
<ā”> 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;
};