You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@
9
9
The Nimbella add-on for Netlify is a Netlify Build Plugin that extends Netlify Sites with portable and stateful serverless functions using [Nimbella](https://nimbella.com/product/platform). The add-on enables developers to deploy sites to Netlify's CDN, and serverless functions and stateful APIs to the [Nimbella Cloud](https://nimbella.com).
10
10
11
11
The Nimbella add-on provides the following benefits.
12
+
12
13
1.**More runtimes:** implement functions in numerous languages including Python, Rust, Swift, Ruby, PHP, Java, Go, Node, and Deno.
13
14
2.**Resource customization:** run functions for longer durations, and with more memory.
14
15
3.**Support for key-value and object stores:** build stateful APIs, and handle images or files.
@@ -36,6 +37,7 @@ Learn more about the Nimbella add-on for Netlify [on our website](https://nimbel
36
37
37
38
Add the Nimbella add-on for Netlify to connect your Netlify site to Nimbella.
38
39
To do that, run the following command from the base of your local project directory which is linked to your Netlify site.
+ functions = "functions" # Functions source directory. Use this if you would like to use Nimbella to deploy your functions.
124
126
```
125
127
128
+
To be able to pass **environment variables** to functions, you should first set them as Netlify build environment variables and use the below plugin input to selectively forward the variables to functions deployed on Nimbella.
129
+
130
+
```toml
131
+
[plugins.inputs]
132
+
envs = ['ENV_ONE', 'ENV_TWO']
133
+
```
134
+
126
135
This plugin builds your functions using a modified version of [netlify-lambda](https://github.com/netlify/netlify-lambda). You can get rid of any build steps you're performing on functions since the plugin handles it for you.
127
136
128
137
**Notes:**
129
-
- None of environment variables present in the Netlify build runtime are made available to the deployed functions on Nimbella Cloud. _An enhancement to permit selective forwarding of environment variables is coming soon._
138
+
130
139
- Replace occurrences of `/.netlify/functions` in your API calls with `/.netlify/nimbella`, or use `/api`, as your API path instead.
131
140
- All Netlify functions are deployed to a "default" package in your Nimbella namespace. The package name is required in the API path. For Netlify functions, the path will be `/.netlify/nimbella/default/` or `/api/default`. For named packages, replace `default` with your package name instead.
Copy file name to clipboardExpand all lines: manifest.yml
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,9 @@ inputs:
8
8
- name: memory
9
9
description: Maximum memory LIMIT in MB for the function (functions input value is required to utilize this option).
10
10
default: 256
11
+
- name: envs
12
+
description: Specify the names of the environment variables that need to be forwarded from Netlify CI to Nimbella Functions (functions input value is required to utilize this option).
13
+
default: []
11
14
- name: path
12
15
description: The API prefix path you would like to use to access your functions.
0 commit comments