Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
🔖 Release 2.0.0 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
Errorname committed Jun 22, 2020
1 parent ef33fa4 commit f12dd35
Show file tree
Hide file tree
Showing 11 changed files with 176 additions and 48 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Because `prisma-multi-tenant` does not only allow you to access multiple databas
## Install

```sh
npm i -g prisma-multi-tenant@beta
npm i -g prisma-multi-tenant
```

## Usage
Expand All @@ -48,7 +48,7 @@ npm i -g prisma-multi-tenant@beta
```
$> prisma-multi-tenant help
🧭 prisma-multi-tenant v2.0.0-beta.6
🧭 prisma-multi-tenant v2.0.0
USAGE
Expand Down
10 changes: 5 additions & 5 deletions docs/Zeit_Now.md → docs/Vercel.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Issues with Zeit Now
# Issues with Vercel

If you try to deploy and use Prisma-multi-tenant on Zeit Now, you may encounter the following problems:
If you try to deploy and use Prisma-multi-tenant on Vercel, you may encounter the following problems:

## Cannot find Query Engine / Migration Engine

Expand All @@ -12,7 +12,7 @@ When trying to programmatically create a new tenant, you may receive the followi
"Command failed: \"/var/task/node_modules/@prisma/cli/build/index.js\" migrate up --create-db --experimental\nError: Could not find query-engine binary. Searched in /var/task/node_modules/@prisma/cli/query-engine-rhel-openssl-1.0.x and /var/task/node_modules/query-engine-rhel-openssl-1.0.x\n"
```

This is because Zeit Now did not bundle the query/migration engines in your app.
This is because Vercel did not bundle the query/migration engines in your app.

**Solution:**

Expand All @@ -37,11 +37,11 @@ When trying to programmatically create a new tenant, you may receive the followi
"Command failed: \"/var/task/node_modules/@prisma/cli/build/index.js\" migrate up --create-db --experimental\nError: ENOENT: no such file or directory, mkdir\n"
```

This is because Zeit Now did not bundle the `prisma/` folder in your app.
This is because Vercel did not bundle the `prisma/` folder in your app.

**Solution:**

In one of your JavaScript file, add the following lines to tell Now to bundle the `prisma/` folder with your app:
In one of your JavaScript file, add the following lines to tell Vercel to bundle the `prisma/` folder with your app:

```js
import path from 'path'
Expand Down
78 changes: 66 additions & 12 deletions docs/examples/basic-js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/examples/basic-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@prisma/cli": "2.0.0-beta.6"
"@prisma/cli": "^2.0.0"
},
"dependencies": {
"@prisma/client": "2.0.0-beta.6",
"prisma-multi-tenant": "2.0.0-beta.6"
"@prisma/client": "^2.0.0",
"prisma-multi-tenant": "^2.0.0"
}
}
78 changes: 66 additions & 12 deletions docs/examples/basic-ts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/examples/basic-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@prisma/cli": "2.0.0-beta.6"
"@prisma/cli": "^2.0.0"
},
"dependencies": {
"@prisma/client": "2.0.0-beta.6",
"prisma-multi-tenant": "2.0.0-beta.6",
"@prisma/client": "^2.0.0",
"prisma-multi-tenant": "^2.0.0",
"ts-node": "8.6.2",
"typescript": "3.8.2"
}
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prisma-multi-tenant",
"version": "2.0.0-beta.6",
"version": "2.0.0",
"description": "🧭 Use Prisma as a multi-tenant provider for your application",
"author": {
"name": "Thibaud Courtoison",
Expand Down Expand Up @@ -34,13 +34,13 @@
"inquirer": "^7.0.4"
},
"peerDependencies": {
"@prisma/cli": "^2.0.0-beta.6"
"@prisma/cli": "^2.0.0"
},
"devDependencies": {
"@babel/core": "^7.8.3",
"@babel/preset-env": "^7.8.3",
"@babel/preset-typescript": "^7.8.3",
"@prisma/cli": "^2.0.0-beta.6",
"@prisma/cli": "^2.0.0",
"@types/inquirer": "^6.5.0",
"@types/jest": "^25.1.0",
"@types/node": "^13.7.0",
Expand Down
Loading

0 comments on commit f12dd35

Please sign in to comment.