Skip to content

feat(presets): add platformatic preset - #4554

Open
p-dubovitsky wants to merge 1 commit into
nitrojs:mainfrom
p-dubovitsky:platformatic-preset
Open

feat(presets): add platformatic preset#4554
p-dubovitsky wants to merge 1 commit into
nitrojs:mainfrom
p-dubovitsky:platformatic-preset

Conversation

@p-dubovitsky

Copy link
Copy Markdown
Contributor

🔗 Linked issue

#4553

❓ Type of change

  • 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Adds a built-in platformatic preset.

The preset extends node-server and loads @platformatic/nitro/scheduler when scheduledTasks are configured. Applications without scheduled tasks are unaffected, and experimental.tasks remains an explicit opt-in.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@p-dubovitsky
p-dubovitsky requested a review from pi0 as a code owner August 24, 2026 12:14
@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

@p-dubovitsky is attempting to deploy a commit to the Nitro Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0ca3b842-0768-4460-93f3-5291d30d8fc5

📥 Commits

Reviewing files that changed from the base of the PR and between c87b721 and 9d45f87.

📒 Files selected for processing (1)
  • docs/2.deploy/20.providers/platformatic.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/2.deploy/20.providers/platformatic.md

Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The PR adds a Platformatic Nitro preset with platformatic and watt aliases. It registers the preset, installs scheduler support for configured scheduled tasks, adds unit tests, and documents configuration and build commands.

Changes

Platformatic Nitro integration

Layer / File(s) Summary
Preset registration and scheduler hook
src/presets/_types.gen.ts, src/presets/platformatic/preset.ts, src/presets/_all.gen.ts, test/unit/platformatic-preset.test.ts
The preset extends node-server, supports Platformatic aliases, installs the scheduler module when scheduled tasks exist, and includes tests for enabled and disabled installation.
Platformatic provider documentation
docs/2.deploy/0.index.md, docs/2.deploy/20.providers/platformatic.md
The deployment documentation lists Platformatic and describes aliases, scheduler configuration, task opt-in, empty schedules, and build commands.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: ⚪ Minimal · up to 9d45f

The PR adds the Platformatic preset and related documentation and tests without any identified merge-blocking risk. It is merge-ready after normal checks and review.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description check ✅ Passed The description clearly explains the new Platformatic preset, scheduler behavior, documentation updates, and linked discussion.
Title check ✅ Passed The title follows Conventional Commits and accurately describes the addition of the Platformatic preset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Aug 24, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/nitro@4554

commit: 9d45f87

@p-dubovitsky
p-dubovitsky deleted the platformatic-preset branch August 24, 2026 12:17
@p-dubovitsky
p-dubovitsky restored the platformatic-preset branch August 24, 2026 12:20
@p-dubovitsky p-dubovitsky reopened this Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant