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
npm install azure-functions-bridge
# or with yarn
yarn add azure-functions-bridge
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;
};