https://github.com/igorhalfeld/azure-functions-bridge
A bridge to Nuxt-based apps works in Azure Functions.
https://github.com/igorhalfeld/azure-functions-bridge
Last synced: about 1 year ago
JSON representation
A bridge to Nuxt-based apps works in Azure Functions.
- Host: GitHub
- URL: https://github.com/igorhalfeld/azure-functions-bridge
- Owner: IgorHalfeld
- Created: 2019-06-20T23:16:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T19:46:08.000Z (over 3 years ago)
- Last Synced: 2025-04-15T01:12:15.244Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## <⚡> Azure Functions Bridge
A bridge to [Nuxt](https://nuxtjs.org/)-based apps works in Azure Functions.
> ⚠️ this is a beta version
- 🚀 Blazing fast
- 🦄 Built for fast prototype
- 🔥 Express behind the scenes
## How to install
```sh
npm install azure-functions-bridge
# or with yarn
yarn add azure-functions-bridge
```
## Usage
_your-function-file.js_
```javascript
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;
};
```