create-harper 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -95,6 +95,17 @@ export async function getEnvVars(interactive, template, argDeploymentUsername, a
95
95
  if (!target.startsWith('http://') && !target.startsWith('https://')) {
96
96
  target = 'https://' + target;
97
97
  }
98
+
99
+ try {
100
+ const url = new URL(target);
101
+ if (!url.port) {
102
+ url.port = '9925';
103
+ }
104
+ target = url.toString();
105
+ } catch {
106
+ // If it's not a valid URL yet, we'll let it be handled later or it will fail
107
+ }
108
+
98
109
  if (!target.endsWith('/')) {
99
110
  target = target + '/';
100
111
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-harper",
3
3
  "description": "Scaffold a new Harper project in JavaScript or TypeScript.",
4
- "version": "1.5.2",
4
+ "version": "1.5.3",
5
5
  "type": "module",
6
6
  "author": {
7
7
  "name": "HarperDB",