ProjectEvergreen / greenwood

Greenwood is your workbench for the web, embracing web standards from the ground up to empower your stack from front to back.
https://www.greenwoodjs.io
MIT License
98 stars 9 forks source link

align static server port being hardcoded for generic `URL` creation #1096

Closed thescientist13 closed 1 year ago

thescientist13 commented 1 year ago

Type of Change

Bug

Summary

Similar to #1092, realized now the port for getStaticServer is also hardcoded when creating a new instance for URL.

const url = new URL(`http://localhost:8080${ctx.url}`);

Details

This isn't really a bug per se as we aren't actually using this URL to make HTTP requests with, but it should at least be consistent with the actual state of the system.