forked from enricoros/big-AGI
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'enricoros:main' into main
- Loading branch information
Showing
22 changed files
with
4,996 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
|
||
# next.js | ||
/.next/ | ||
/dist/ | ||
/out/ | ||
|
||
# production | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,31 +9,33 @@ This guide outlines the database options and setup steps for enabling features l | |
- Available on Vercel, Neon, and other platforms. | ||
- Less feature-rich but a suitable option depending on your needs. | ||
- **Connection String:** Replace placeholders with your Postgres credentials. | ||
- `postgres://USER:[email protected]/SOMEDB?pgbouncer=true&connect_timeout=15` | ||
- `postgres://USER:[email protected]/SOMEDB?pgbouncer=true&connect_timeout=15` | ||
|
||
**2. MongoDB Atlas (alternative):** | ||
|
||
- **Highly Recommended:** More than a database, it's a data platform. MongoDB Atlas is a robust cloud-based platform that offers scalability, security, and a suite of developer tools. No need for a separate vector database, you can query your vector embeddings right within your operational database! | ||
- **Additional Features:** MongoDB Atlas is packed with unique features designed to streamline the development process such as: Atlas App Services, Atlas search (with vector search), Atlas charts, Data Federation, and more. | ||
- **Highly Recommended:** More than a database, it's a data platform. MongoDB Atlas is a robust cloud-based platform that offers scalability, security, and a suite of developer tools. No need for a separate vector database, you can query your vector embeddings right within your operational database! | ||
- **Additional Features:** MongoDB Atlas is packed with unique features designed to streamline the development process such as: Atlas App Services, Atlas search (with vector search), Atlas charts, Data Federation, and more. | ||
- **Connection String:** Replace placeholders with your Atlas credentials. | ||
- `mongodb://USER:[email protected]/DATABASE-NAME?retryWrites=true&w=majority` | ||
- `mongodb://USER:[email protected]/DATABASE-NAME?retryWrites=true&w=majority` | ||
|
||
### Environment Variables: | ||
|
||
#### Postgres: | ||
| Variable | | | ||
|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| `POSTGRES_PRISMA_URL` | `postgres://USER:[email protected]/SOMEDB?pgbouncer=true&connect_timeout=15` | | ||
| `POSTGRES_URL_NON_POOLING` (optional) | URL for the Postgres database without pooling (specific use cases) | | ||
|
||
| Variable | | | ||
|---------------------------------------|------------------------------------------------------------------------------------------------------| | ||
| `POSTGRES_PRISMA_URL` | `postgres://USER:[email protected]/SOMEDB?pgbouncer=true&connect_timeout=15` | | ||
| `POSTGRES_URL_NON_POOLING` (optional) | URL for the Postgres database without pooling (specific use cases) | | ||
|
||
#### MongoDB: | ||
| Variable | | | ||
|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| `MDB_URI` | `mongodb://USER:[email protected]/DATABASE-NAME?retryWrites=true&w=majority` | | ||
|
||
| Variable | | | ||
|-----------|------------------------------------------------------------------------------------------| | ||
| `MDB_URI` | `mongodb://USER:[email protected]/DATABASE-NAME?retryWrites=true&w=majority` | | ||
|
||
### MongoDB Atlas + Prisma | ||
When using MongoDB Atlas, you'll need to make the below changes to the file `prisma.schema` | ||
|
||
When using MongoDB Atlas, you'll need to make the below changes to the file [`src/server/prisma/schema.prisma`](../src/server/prisma/schema.prisma). | ||
|
||
``` | ||
... | ||
|
@@ -53,8 +55,7 @@ model LinkStorage { | |
|
||
### Initial Setup Steps: | ||
|
||
1. **Run `npx prisma db:push`:** Create or update the database schema (run once after connecting). | ||
|
||
1. **Run `npx prisma db push`:** Create or update the database schema (run once after connecting). | ||
|
||
### Additional Resources: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/dist/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
.pnpm-debug.log* | ||
|
||
# local env files | ||
.env | ||
.env.* | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
# other | ||
.idea/ |
Oops, something went wrong.
883f350
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
hi-zarina – ./
hi.zarina.io
hi-zarina-icras-projects.vercel.app
big-agi-tan.vercel.app
hi-zarina-git-main-icras-projects.vercel.app