Replace deprecated url.parse() with new URL() API #13

Closed
opened 2026-02-15 05:31:39 -08:00 by kyle · 0 comments
Owner

Problem: server.js used the deprecated url.parse() from Node.js url module (deprecated since Node 11).

Solution: Replaced with new URL(req.url, host) which is the modern standard. Updated route handlers in sites.js to use searchParams.get() instead of query.property.

Files changed:

  • server.js - Removed url require, use new URL()
  • server/routes/sites.js - Use searchParams.get() for query params
Problem: server.js used the deprecated url.parse() from Node.js url module (deprecated since Node 11). Solution: Replaced with new URL(req.url, host) which is the modern standard. Updated route handlers in sites.js to use searchParams.get() instead of query.property. Files changed: - server.js - Removed url require, use new URL() - server/routes/sites.js - Use searchParams.get() for query params
kyle closed this issue 2026-02-15 05:32:10 -08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kyle/SignageHTML#13