Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit beb93cb

Browse files
authored
Merge pull request #194 from appwrite/fix-function-deploy-command
Fix deploy command and add description for response size limit in functions
2 parents dc62033 + 7e475ba commit beb93cb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/views/docs/functions.phtml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ Future <void> start(final req, final res) async {
322322
--functionId=6012cc93d5a7b \
323323
--activate=true \
324324
--entrypoint="index.js" \
325-
--code="/myrepo/myfunction"</code></pre>
325+
--code="."</code></pre>
326326
</div>
327327
</li>
328328
<li>
@@ -333,7 +333,7 @@ Future &lt;void&gt; start(final req, final res) async {
333333
--functionId=6012cc93d5a7b ^
334334
--activate=true ^
335335
--entrypoint="index.js" ^
336-
--code="/myrepo/myfunction"</code></pre>
336+
--code="."</code></pre>
337337
</div>
338338
</li>
339339
<li>
@@ -344,7 +344,7 @@ Future &lt;void&gt; start(final req, final res) async {
344344
--functionId=6012cc93d5a7b ,
345345
--activate=true ,
346346
--entrypoint="index.js" ,
347-
--code="/myrepo/myfunction"</code></pre>
347+
--code="."</code></pre>
348348
</div>
349349
</li>
350350
</ul>
@@ -518,6 +518,8 @@ class MainActivity : AppCompatActivity() {
518518

519519
<p>When triggering a Cloud Function execution from the client, your users will be limited to a specific amount of execution per minute to make sure your Appwrite server is not being abused. The default limit is 60 calls per 1 minute. You can edit this limit using the server <a href="/docs/environment-variables#functions">environment variables</a>.</p>
520520

521+
<p>The response size of a Cloud Function is limited to 1MB. Reponses larger than 1MB should be handled using Appwrite's Database or Storage service.</p>
522+
521523
<h2><a href="/docs/functions#ignoreFiles" id="ignoreFiles">Ignore Files</a></h2>
522524

523525
<p>Library folders such as <b>node_modules</b> or <b>vendor</b> should not be included in your tarball since these dependencies will be installed during your function's build process. Similarly, you should <b>not</b> include files containing secrets in your deployment. You can use the Appwite CLI's <b>file ignoring</b> feature to exclude specific files from a deployment.</p>

0 commit comments

Comments
 (0)