You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .cursor/rules/coding-style.mdc
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,3 +9,6 @@ alwaysApply: false
9
9
- Favor using real paths (`../lib/schemas.ts`) over aliases (`@/app/lib/schemas`).
10
10
- Favor `for (const comment of comments) {` over `comments.forEach((comment) => {`
11
11
- Favor named exports over default exports, with the exception of Next.js pages
12
+
- Do not wrap each function body and function call in `try`/`catch` blocks. It pollutes the code. Assume we will always have an e.g. `main().catch((err) => { console.error(err); process.exit(1) })` to catch us.
13
+
- Before creating new files and new code, see if we can leverage existing work, maybe slighty adapt that without breaking BC, to keep things DRY.
14
+
- Favor early exits, so quickly `continue`, `return false` (or `throw` if needed), over nesting everything in positive conditions, creating christmas trees.
Copy file name to clipboardExpand all lines: .cursor/rules/general.mdc
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,5 +5,6 @@ alwaysApply: true
5
5
---
6
6
- Do not touch `.env` files!
7
7
- Favor Yarn (4) over npm
8
+
- Never run any dev server yourself. I have one running that auto-reloads on changes.
8
9
- Avoid blocking the conversation with terminal commands. For example: A) most of my git commands run through pagers, so pipe their output to `cat` to avoid blocking the
9
-
terminal. B) Running a server in the foreground will block the conversation. Avoid it. C) You can use `tail` for logs, but be smart and use `-n` instead of `-f`, or the conversation will block
10
+
terminal. B) You can use `tail` for logs, but be smart and use `-n` instead of `-f`, or the conversation will block
Allows you to specify the duration of each chunk when \`turbo\` is set to \`true\`. This means you can take advantage of that feature while using fewer <dfn>Priority Job Slots</dfn>. For instance, the longer each chunk is, the fewer <dfn>Encoding Jobs</dfn> will need to be used.
Examines the transcoding result file for video freeze frames and re-transcodes the video a second time if they are found. This is useful when you are using \`turbo: true\` because freeze frames can sometimes happen there. The re-transcode would then happen without turbo mode.
107
104
`),
108
105
watermark_url: z.string().default('').describe(`
109
106
A URL indicating a PNG image to be overlaid above this image. You can also [supply the watermark via another Assembly Step](/docs/transcoding/video-encoding/video-encode/#watermark-parameters-video-encode).
0 commit comments