-
-
Notifications
You must be signed in to change notification settings - Fork 713
Docs improvements: clearing build cache, concurrently running next + trigger, trouble shooting pino #1758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
WalkthroughThis pull request updates multiple documentation files. It adds new sections—such as "Exporters," "Explore by build extension," and details on a corepack error—to guide users on telemetry exporter configuration, build extensions, and error resolution. New component imports (e.g., Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant T as Terminal
participant C as Concurrently
participant N as Next.js App
participant TD as Trigger.dev Server
U->>T: Run "npm run dev"
T->>C: Execute concurrently scripts from package.json
C->>N: Start Next.js application
C->>TD: Start Trigger.dev server
N-->>C: Emit colored log output
TD-->>C: Emit colored log output
C-->>T: Display combined logs
Possibly related PRs
Suggested reviewers
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (3)
docs/snippets/run-dev-and-next-concurrently.mdx (1)
1-20
: Review of "RunDevAndNextConcurrently" Documentation Snippet
The snippet clearly outlines how to configure thepackage.json
scripts to run both the Next.js app and Trigger.dev concurrently. One minor suggestion: consider rephrasing the sentence on line 19 to avoid potential duplication. For example, you could replace "Trigger.dev dev server" with "Trigger.dev development server" for clarity.Proposed diff:
- "This will run both your Next.js app and Trigger.dev dev server in the same terminal window, with color-coded output to distinguish between them." + "This will run both your Next.js app and Trigger.dev development server in the same terminal window, with color-coded output to distinguish between them."🧰 Tools
🪛 LanguageTool
[duplication] ~19-~19: Possible typo: you repeated a word.
Context: ...l run both your Next.js app and Trigger.dev dev server in the same terminal window, wit...(ENGLISH_WORD_REPEAT_RULE)
docs/troubleshooting.mdx (2)
33-36
: Enhanced "Clear the build cache" Section
This new section clearly explains how to clear the build cache by stopping the local dev server and deleting the hidden.trigger
folder. For improved readability, consider adding a comma after "local dev server" in the sentence on line 35.-Ensure you have stopped your local dev server then locate the hidden `.trigger` folder in your project and delete it. +Ensure you have stopped your local dev server, then locate the hidden `.trigger` folder in your project and delete it.🧰 Tools
🪛 LanguageTool
[uncategorized] ~35-~35: A comma might be missing here.
Context: ... Ensure you have stopped your local dev server then locate the hidden.trigger
folde...(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)
71-74
: Improvement for pino Error Guidance
The added guidance for the errorCannot find module '/app/lib/worker.js"
when using pino is helpful. To strengthen the instruction, consider using a more assertive verb—such as "include" instead of "add"—to improve clarity on updating theexternal
build settings.-If you see this error, add pino (and any other associated packages) to your `external` build settings in your `trigger.config.ts` file. Learn more about the `external` setting in the [config docs](/config/config-file#external). +If you see this error, include pino (and any other associated packages) in your `external` build settings in your `trigger.config.ts` file. Learn more about the `external` setting in the [config docs](/config/config-file#external).🧰 Tools
🪛 LanguageTool
[style] ~73-~73: Consider an alternative verb to strengthen your wording.
Context: ...lib/worker.js"` when using pino If you see this error, add pino (and any other ass...(IF_YOU_HAVE_THIS_PROBLEM)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (9)
docs/config/config-file.mdx
(1 hunks)docs/deployment/overview.mdx
(2 hunks)docs/guides/frameworks/nextjs.mdx
(2 hunks)docs/introduction.mdx
(1 hunks)docs/logging.mdx
(1 hunks)docs/machines.mdx
(1 hunks)docs/snippets/corepack-error.mdx
(1 hunks)docs/snippets/run-dev-and-next-concurrently.mdx
(1 hunks)docs/troubleshooting.mdx
(3 hunks)
✅ Files skipped from review due to trivial changes (3)
- docs/snippets/corepack-error.mdx
- docs/machines.mdx
- docs/logging.mdx
🧰 Additional context used
🪛 LanguageTool
docs/snippets/run-dev-and-next-concurrently.mdx
[duplication] ~19-~19: Possible typo: you repeated a word.
Context: ...l run both your Next.js app and Trigger.dev dev server in the same terminal window, wit...
(ENGLISH_WORD_REPEAT_RULE)
docs/troubleshooting.mdx
[uncategorized] ~35-~35: A comma might be missing here.
Context: ... Ensure you have stopped your local dev server then locate the hidden .trigger
folde...
(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)
[style] ~73-~73: Consider an alternative verb to strengthen your wording.
Context: ...lib/worker.js"` when using pino If you see this error, add pino (and any other ass...
(IF_YOU_HAVE_THIS_PROBLEM)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (8)
docs/deployment/overview.mdx (2)
7-8
: Import and Usage of CorepackError Component
The addition of the import statement forCorepackError
from/snippets/corepack-error.mdx
is clear and consistent with similar changes in other documentation files. Please ensure that the corresponding snippet is up to date so that the error guidance is consistent across all pages.
235-236
: Rendering the CorepackError Component
The insertion of<CorepackError />
at the end of the document effectively embeds error-handling guidance for Corepack issues. Verify that its placement logically follows related troubleshooting content and that the snippet renders correctly in all output formats of the documentation.docs/introduction.mdx (1)
88-103
: New "Explore by build extension" Section
This new section is well structured and provides a helpful table listing various build extensions along with descriptions and documentation links. The left-aligned headers improve readability. Please double-check that each link points to the correct and updated documentation page.docs/guides/frameworks/nextjs.mdx (2)
22-23
: Import of RunDevAndNextConcurrently Component
The import statement forRunDevAndNextConcurrently
from/snippets/run-dev-and-next-concurrently.mdx
is correctly added and follows the established documentation pattern.
37-38
: Insertion of RunDevAndNextConcurrently Component
Integrating the<RunDevAndNextConcurrently />
component into the guide enhances the practical instructions for running the development servers concurrently. Ensure that future updates to the snippet are mirrored in this guide to maintain consistency.docs/config/config-file.mdx (1)
140-171
: New "Exporters" Section in Configuration
The added "Exporters" section through a detailed code snippet provides excellent guidance on configuring an OTLP trace exporter (using the Axiom endpoint) for telemetry. The snippet is well formatted and explains how to initialize the exporter with appropriate headers. Ensure that the environment variable names (AXIOM_API_TOKEN
andAXIOM_DATASET
) are consistent with the rest of the documentation.docs/troubleshooting.mdx (2)
9-9
: New Import for CorepackError
The addition of theCorepackError
import enhances error handling in the documentation by providing a dedicated component for Corepack-related issues. Verify that the snippet path (/snippets/corepack-error.mdx
) is correct and that the referenced component is available.
75-75
: Effective Integration of CorepackError Component
The use of<CorepackError />
integrates consistent error handling for Corepack issues, aligning with similar implementations in the deployment documentation.
A range of docs improvements:
Summary by CodeRabbit