Skip to content

Remove nodemon and document the unified Vite dev/build server - #4668

Draft
cprecioso wants to merge 2 commits into
cprecioso/vite-unified-devfrom
cprecioso/vite-server-cleanup
Draft

Remove nodemon and document the unified Vite dev/build server#4668
cprecioso wants to merge 2 commits into
cprecioso/vite-unified-devfrom
cprecioso/vite-server-cleanup

Conversation

@cprecioso

@cprecioso cprecioso commented Aug 11, 2026

Copy link
Copy Markdown
Member

Part of the Vite server unification stack (PR 5/5). Base: cprecioso/vite-unified-dev (#4667).

Description

Final PR of the stack: removes the dev machinery the previous PRs made dead, refreshes the comments and docs they invalidated, and writes the user-facing story for the whole stack.

  • Nodemon is gone from the generated server. Removed ServerGenerator.genNodemon, the server/nodemon.json template and the nodemon devDependency. Nothing consumed them after PR 4 dropped the watch and bundle-and-start scripts.
  • Stale comments refreshed: templates/server/tsconfig.json (the rollup mention and the "we don't run TSC" note, which the bundle script has contradicted for a while), the leftover comment-filip key in templates/server/package.json, the nodemon paragraph in Wasp.AppSpec.ExtImport, and the generated server's README.md (it promised npm start reloads on changes).
  • Docs (web/docs/ only):
    • project/custom-vite-config.md: waspServer() in the required configuration, a new "The Server Environment" section (single dev process, production bundling, vite build still means "build the client"), and the enforced options the server plugin adds.
    • advanced/accessing-app-config.md: the nodemon prose is replaced by the in-process dev server.
    • guides/deployment/cloud-providers/render.md: a note that npm run bundle goes through the project's root Vite config and the root install wasp build produces, so it can't run on its own.
    • Swept the rest of the docs: every vite.config snippet a user can copy now includes waspServer() (Tailwind guide, local network testing guide), and the wasp start output sample uses the new [ App ] prefix.
    • migration-guide.md: a step for adding waspServer(), and the "check out the migration guide" line the 0.26.0 ChangeLog section was missing. Note the in-development guide lives at web/docs/migration-guide.md; the web/docs/migration-guides/ path in the checklist below only exists in versioned_docs.
  • waspc/ChangeLog.md: one consolidated breaking-change entry for the whole stack (plugin requirement, single dev process, in-place server restarts, no dev type-checking, rollup/nodemon gone from devDependencies, bundle/assets/ chunks).

No waspc.cabal version bump: the version was already bumped to 0.26.0 on main after the 0.25.0 release (commit 27c15f522f), and that section of the ChangeLog already carries breaking changes.

Left as follow-ups (from the plan): dev seeding through a one-shot module runner, user options for wasp/server/vite, moving the server typecheck into a Vite plugin, and the openSaaS starter's vite.config.ts, which needs waspServer() when this releases.

Type of change

  • 🔧 Just code/docs improvement
  • 🐞 Bug fix
  • 🚀 New/improved feature
  • 💥 Breaking change

Checklist

  • I tested my change in a Wasp app to verify that it works as intended.

  • 🧪 Tests and apps:

    • I added unit tests for my change.
    • (if you fixed a bug) I added a regression test for the bug I fixed.
    • (if you added/updated a feature) I added/updated e2e tests in examples/kitchen-sink/e2e-tests.
    • (if you added/updated a feature) I updated the starter templates in waspc/data/Cli/templates, as needed.
    • (if you added/updated a feature) I updated the example apps in examples/, as needed.
      • (if you updated examples/tutorials) I updated the tutorial in the docs (and vice versa).
  • 📜 Documentation:

    • (if you added/updated a feature) I added/updated the documentation in web/docs/.
  • 🆕 Changelog: (if change is more than just code/docs improvement)

    • I updated waspc/ChangeLog.md with a user-friendly description of the change.
    • (if you did a breaking change) I added a step to the current migration guide in web/docs/migration-guides/.
    • I bumped the version in waspc/waspc.cabal to reflect the changes I introduced.

Nothing consumed nodemon after the dev server moved into Vite's module
runner, so drop `genNodemon`, the `nodemon.json` template and the
`nodemon` devDependency.

Refresh the comments the previous PRs invalidated (the generated server's
tsconfig, package.json and README, and `ExtImport`'s note on which watcher
sees what), document the `waspServer()` plugin and the `server` environment
in the docs, add a migration step for it, and write one consolidated
ChangeLog entry for the whole stack.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying wasp-docs-on-main with  Cloudflare Pages  Cloudflare Pages

Latest commit: c54b689
Status: ✅  Deploy successful!
Preview URL: https://6b4327d0.wasp-docs-on-main.pages.dev
Branch Preview URL: https://cprecioso-vite-server-cleanu.wasp-docs-on-main.pages.dev

View logs

@pkg-pr-new

pkg-pr-new Bot commented Aug 11, 2026

Copy link
Copy Markdown

Open in StackBlitz

@wasp.sh/spec

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/spec@4668

@wasp.sh/wasp-cli

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli@4668

@wasp.sh/wasp-cli-darwin-arm64-unknown

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli-darwin-arm64-unknown@4668

@wasp.sh/wasp-cli-darwin-x64-unknown

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli-darwin-x64-unknown@4668

@wasp.sh/wasp-cli-linux-arm64-glibc

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli-linux-arm64-glibc@4668

@wasp.sh/wasp-cli-linux-x64-glibc

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli-linux-x64-glibc@4668

@wasp.sh/wasp-cli-linux-x64-musl

npx https://pkg.pr.new/wasp-lang/wasp/@wasp.sh/wasp-cli-linux-x64-musl@4668

commit: 6c67d71

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