Skip to content

feat: netlify dev preset#3471

Merged
pi0 merged 5 commits intov2from
feat/netlify-preset
Jul 15, 2025
Merged

feat: netlify dev preset#3471
pi0 merged 5 commits intov2from
feat/netlify-preset

Conversation

@pi0
Copy link
Member

@pi0 pi0 commented Jul 13, 2025

This PR adds a dev preset for netlify local emulation based on new dev presets (#3467) similar to cloudflare (#3470), and based on netlify/primitives#344 as base implementation.

(experimental) Working, but we probably have to improve implementation as a runtime middleware/plugin for a closer to prod experience, and also forward compatibility with Nitro v3 and its Vite env presets.

Opt-in steps (similar to #3470):

  • Use the latest version of Nitro v2 (or, in case of meta-frameworks, recreate lockfile)
  • Compatibility date latest or >= 2025-07-13
  • Set preset config to netlify

Co-Authored-By: Philippe Serhal <1377702+serhalp@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
@pi0 pi0 changed the base branch from v3 to v2 July 13, 2025 21:42
@pi0 pi0 requested review from a team and serhalp July 13, 2025 21:42
@pi0 pi0 marked this pull request as ready for review July 13, 2025 22:29
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 14, 2025

Deploying nitrojs with  Cloudflare Pages  Cloudflare Pages

Latest commit: dfdfc8e
Status: ✅  Deploy successful!
Preview URL: https://4688965a.nitrojs.pages.dev
Branch Preview URL: https://feat-netlify-preset.nitrojs.pages.dev

View logs

@pi0
Copy link
Member Author

pi0 commented Jul 15, 2025

Moving forward to e2e test via nightly channel. This certainly needs rework in next patch releases to be a runtime augmentation.

@pi0 pi0 merged commit fb01098 into v2 Jul 15, 2025
5 checks passed
@pi0 pi0 deleted the feat/netlify-preset branch July 15, 2025 08:19
pi0 added a commit that referenced this pull request Jul 15, 2025
luc122c pushed a commit to luc122c/unjs-nitro that referenced this pull request Jul 17, 2025
Co-authored-by: Philippe Serhal <1377702+serhalp@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
luc122c pushed a commit to luc122c/unjs-nitro that referenced this pull request Jul 17, 2025
@Hebilicious Hebilicious mentioned this pull request Sep 14, 2025
8 tasks
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