Skip to content

Commit

Permalink
update img links
Browse files Browse the repository at this point in the history
  • Loading branch information
jharrell committed Dec 19, 2024
1 parent e130c4a commit f5cf196
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ filterPosts: (parent, args, ctx) => {

Now whenever you type `ctx.` VS Code will provide unnecessary options in the autocomplete which is undesirable.

![Unwanted autocomplete values by VSCode](./unwanted-autocomplete-values-in-vscode.png)
![Unwanted autocomplete values by VSCode](/img/orm/unwanted-autocomplete-values-in-vscode.png)

VS Code doesn't know the _type_ of the `context` object so it can't provide any intellisense for it, which is why unwanted suggestions are displayed.

Expand Down Expand Up @@ -69,7 +69,7 @@ This will tell VS Code that the `context` has a property named `prisma` and the

And voilà, autocompletion in plain JavaScript.

![The correct parameters for context are obtained](./prisma-autocompletion-in-js.png)
![The correct parameters for context are obtained](/img/orm/prisma-autocompletion-in-js.png)

The final file should look something like:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ Another way to configure `prisma generate` to be run on every deployment is to a

Within your project's dashboard, go to the **Settings** tab and find the **General** section. In that section you will find a box labeled **Build & Development Settings** that contains an input field named **Build Command**:

![Vercel project dashboard's Build Command setting](./vercel-ui-build-command.png)
![Vercel project dashboard's Build Command setting](/img/orm/vercel-ui-build-command.png)

Within that field, prepend `prisma generate` to the existing script:

![Vercel project dashboard's Build Command setting filled](./vercel-ui-build-command-filled.png)
![Vercel project dashboard's Build Command setting filled](/img/orm/vercel-ui-build-command-filled.png)
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ Within your project's dashboard, go to the **Site Settings** tab and find the **

Find the box in that section labeled **Build settings** and click the **Edit settings** button:

![Netlify project dashboard's Build settings button](./netlify-edit-settings.png)
![Netlify project dashboard's Build settings button](/img/orm/netlify-edit-settings.png)

Clicking that button will open a form with various fields. Find the **Build command** field and prepend `prisma generate` to the existing script:

![Netlify project dashboard's Build command setting filled](./netlify-build-command-filled.png)
![Netlify project dashboard's Build command setting filled](/img/orm/netlify-build-command-filled.png)

0 comments on commit f5cf196

Please sign in to comment.