Skip to content

Commit

Permalink
Renamed vercel.json to vercel_PRODUCTION.json to get it out of the wa…
Browse files Browse the repository at this point in the history
…y and fix #468

Fix #468 once and for all. Documentation on the env
  • Loading branch information
enricoros committed Apr 2, 2024
1 parent d32adf9 commit 7b232dd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions docs/customizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,25 @@ Understand the Architecture: big-AGI uses Next.js, React for the front end, and

This necessitates a code change (file renaming) before build initiation, detailed in [deploy-authentication.md](deploy-authentication.md).

### Increase Vercel Functions Timeout

For long-running operations, Vercel allows paid deployments to increase the timeout on Functions.
Note that this applies to old-style Vercel Functions (based on Node.js) and not the new Edge Functions.

At time of writing, big-AGI has only 2 operations that run on Node.js Functions:
browsing (fetching web pages) and sharing. They both can exceed 10 seconds, especially
when fetching large pages or waiting for websites to be completed.

We provide `vercel_PRODUCTION.json` to raise the duration to 25 seconds (from a default of 10), to use it,
make sure to rename it to `vercel.json` before build.

From the Vercel Project > Settings > General > Build & Development Settings,
you can for instance set the build command to:

```bash
mv vercel_PRODUCTION.json vercel.json; next build
```

### Change the Personas

Edit the `src/data.ts` file to customize personas. This file houses the default personas. You can add, remove, or modify these to meet your project's needs.
Expand Down Expand Up @@ -53,10 +72,10 @@ We introduced the `/info/debug` page that provides a detailed overview of the ap

After deployment, share your project with the community. We will link to your project to help others discover and learn from your work.

| Project | Features | GitHub |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|
| Project | Features | GitHub |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|
| 🚀 CoolAGI: Where AI meets Imagination<br/>![CoolAGI Logo](https://github.com/nextgen-user/freegpt4plus/assets/150797204/9b0e1232-4791-4d61-b949-16f9eb284c22) | Code Interpreter, Vision, Mind maps, Web Searches, Advanced Data Analytics, Large Data Handling and more! | [nextgen-user/CoolAGI](https://github.com/nextgen-user/CoolAGI) |
| HL-GPT | Fully remodeled UI | [harlanlewis/nextjs-chatgpt-app](https://github.com/harlanlewis/nextjs-chatgpt-app) |
| HL-GPT | Fully remodeled UI | [harlanlewis/nextjs-chatgpt-app](https://github.com/harlanlewis/nextjs-chatgpt-app) |

For public projects, update your README.md with your modifications and submit a pull request to add your project to our list, aiding in its discovery.

Expand Down
File renamed without changes.

0 comments on commit 7b232dd

Please sign in to comment.