@hatchkit/dev-plugin-next 0.1.47 → 0.2.2
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.
- package/LICENSE +21 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +49 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Rico Trebeljahr
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,10 @@ export interface LocalDevOptions {
|
|
|
4
4
|
* workspaces). When unset, the plugin walks up from cwd looking for
|
|
5
5
|
* `.hatchkit.json` (preferred) then package.json. */
|
|
6
6
|
slug?: string;
|
|
7
|
+
/** Override local-dev host suffix. Defaults to `local.<project base domain>`
|
|
8
|
+
* when `.hatchkit.json` has a domain, else Hatchkit's legacy shared
|
|
9
|
+
* domain. */
|
|
10
|
+
localDevDomain?: string;
|
|
7
11
|
/** Default port to assume when the dev server hasn't told us yet.
|
|
8
12
|
* Next.js defaults to 3000; hatchkit's scaffold pins a random 3xxx
|
|
9
13
|
* per project, so callers usually override this. */
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAyDA,MAAM,WAAW,eAAe;IAC9B;;;0DAGsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;kBAEc;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;yDAEqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;sCACkC;IAClC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,mEAAmE;AACnE,wBAAgB,YAAY,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAE,eAAoB,GAAG,OAAO,CAYjG"}
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* picks the change up without a restart.
|
|
28
28
|
* 4. Probes `tailscale serve status` for the TCP=443 bridge that
|
|
29
29
|
* `hatchkit dev-setup init` registers once per machine.
|
|
30
|
-
* 5. Prints a one-line `Tailscale: https://<slug
|
|
30
|
+
* 5. Prints a one-line `Tailscale: https://<slug>.<local-dev-domain>/`
|
|
31
31
|
* banner alongside Next's own startup output.
|
|
32
32
|
*
|
|
33
33
|
* Failure modes (no caddy fragment, no TCP bridge, tailscale offline)
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
*
|
|
39
39
|
* The plugin does NOT touch Next's `basePath` / `assetPrefix` /
|
|
40
40
|
* routing. Caddy proxies verbatim and Next serves at `/` — HMR/WS
|
|
41
|
-
* paths stay unchanged
|
|
41
|
+
* paths stay unchanged. During `next dev`, the wrapper adds the
|
|
42
|
+
* project's local-dev host to `allowedDevOrigins` so
|
|
43
|
+
* Next's dev-resource origin guard allows font and HMR requests.
|
|
42
44
|
*/
|
|
43
45
|
import { isLocalDevActive, localDevUrl, readCaddyPort, resolveSlug, tailscaleIdentity, tailscaleServeTcpTarget, writeProjectFragment, } from "@hatchkit/dev-shared";
|
|
44
46
|
/** Wrap a Next.js config with hatchkit's local-dev integration. */
|
|
@@ -46,10 +48,13 @@ export function withLocalDev(nextConfig, options = {}) {
|
|
|
46
48
|
// Only fire side effects in `next dev`. Production builds + `next start`
|
|
47
49
|
// get the bare config back; same behaviour as if the plugin weren't there.
|
|
48
50
|
if (isDevCommand() && process.env.HATCHKIT_LOCAL_DEV !== "0") {
|
|
51
|
+
const resolved = resolveSlug({ explicit: options.slug, localDevDomain: options.localDevDomain });
|
|
49
52
|
// Schedule async so we don't block Next's config loader. The Promise
|
|
50
53
|
// resolves into stdout — Next's logger has already cleared by the
|
|
51
54
|
// time we print, so our banner shows up below Next's "Ready" line.
|
|
52
|
-
void initLocalDev(options);
|
|
55
|
+
void initLocalDev(options, resolved);
|
|
56
|
+
if (resolved)
|
|
57
|
+
return withAllowedDevOrigin(nextConfig, localDevHost(resolved));
|
|
53
58
|
}
|
|
54
59
|
return nextConfig;
|
|
55
60
|
}
|
|
@@ -62,7 +67,7 @@ function isDevCommand() {
|
|
|
62
67
|
const argv = process.argv.slice(2);
|
|
63
68
|
return argv.includes("dev") || argv.includes("--dev");
|
|
64
69
|
}
|
|
65
|
-
async function initLocalDev(options) {
|
|
70
|
+
async function initLocalDev(options, resolved) {
|
|
66
71
|
// Wait one tick so Next's own banner ("▲ Next.js …", "Ready in …ms")
|
|
67
72
|
// has flushed before we tack our line on. Picking a fixed delay is
|
|
68
73
|
// unavoidable here — Next 14/15 don't expose a "server-listening"
|
|
@@ -71,7 +76,6 @@ async function initLocalDev(options) {
|
|
|
71
76
|
// dev server takes longer to come up our banner still prints, just
|
|
72
77
|
// mixed in with later HMR logs (harmless).
|
|
73
78
|
await sleep(1500);
|
|
74
|
-
const resolved = resolveSlug({ explicit: options.slug });
|
|
75
79
|
if (!resolved) {
|
|
76
80
|
log("[hatchkit] local-dev disabled: no slug found (set { slug } in withLocalDev or add a name to package.json).");
|
|
77
81
|
return;
|
|
@@ -86,7 +90,7 @@ async function initLocalDev(options) {
|
|
|
86
90
|
// port changed.
|
|
87
91
|
let fragmentResult = "unchanged";
|
|
88
92
|
try {
|
|
89
|
-
fragmentResult = writeProjectFragment(resolved.slug, port);
|
|
93
|
+
fragmentResult = writeProjectFragment(resolved.slug, port, resolved.localDevDomain);
|
|
90
94
|
}
|
|
91
95
|
catch (err) {
|
|
92
96
|
log(`[hatchkit] local-dev: failed to write Caddy fragment (${err.message}). Banner suppressed.`);
|
|
@@ -124,9 +128,46 @@ async function initLocalDev(options) {
|
|
|
124
128
|
return;
|
|
125
129
|
}
|
|
126
130
|
if (!options.silent) {
|
|
127
|
-
log(`[hatchkit] Tailscale: ${localDevUrl(resolved.slug)} (slug from ${describeSource(resolved)})`);
|
|
131
|
+
log(`[hatchkit] Tailscale: ${localDevUrl(resolved.slug, resolved.localDevDomain)} (slug from ${describeSource(resolved)})`);
|
|
128
132
|
}
|
|
129
133
|
}
|
|
134
|
+
function localDevHost(resolved) {
|
|
135
|
+
return `${resolved.slug}.${resolved.localDevDomain}`;
|
|
136
|
+
}
|
|
137
|
+
function withAllowedDevOrigin(nextConfig, host) {
|
|
138
|
+
if (typeof nextConfig === "function") {
|
|
139
|
+
const original = nextConfig;
|
|
140
|
+
const wrapped = function (...args) {
|
|
141
|
+
const result = original.apply(this, args);
|
|
142
|
+
if (isPromiseLike(result)) {
|
|
143
|
+
return result.then((config) => appendAllowedDevOrigin(config, host));
|
|
144
|
+
}
|
|
145
|
+
return appendAllowedDevOrigin(result, host);
|
|
146
|
+
};
|
|
147
|
+
return wrapped;
|
|
148
|
+
}
|
|
149
|
+
return appendAllowedDevOrigin(nextConfig, host);
|
|
150
|
+
}
|
|
151
|
+
function appendAllowedDevOrigin(nextConfig, host) {
|
|
152
|
+
if (!isConfigObject(nextConfig))
|
|
153
|
+
return nextConfig;
|
|
154
|
+
const current = nextConfig.allowedDevOrigins;
|
|
155
|
+
if (current === undefined) {
|
|
156
|
+
return { ...nextConfig, allowedDevOrigins: [host] };
|
|
157
|
+
}
|
|
158
|
+
if (Array.isArray(current)) {
|
|
159
|
+
if (current.includes(host))
|
|
160
|
+
return nextConfig;
|
|
161
|
+
return { ...nextConfig, allowedDevOrigins: [...current, host] };
|
|
162
|
+
}
|
|
163
|
+
return nextConfig;
|
|
164
|
+
}
|
|
165
|
+
function isConfigObject(value) {
|
|
166
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
167
|
+
}
|
|
168
|
+
function isPromiseLike(value) {
|
|
169
|
+
return isConfigObject(value) && typeof value.then === "function";
|
|
170
|
+
}
|
|
130
171
|
function detectDevPort(fallback) {
|
|
131
172
|
// Order matches Next's own resolution: explicit env var, then -p / --port
|
|
132
173
|
// argv, then the framework's default.
|
|
@@ -172,6 +213,7 @@ function describeSource(resolved) {
|
|
|
172
213
|
case "package-json":
|
|
173
214
|
return "package.json";
|
|
174
215
|
}
|
|
216
|
+
return "unknown";
|
|
175
217
|
}
|
|
176
218
|
function sleep(ms) {
|
|
177
219
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;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AAM,EAAE,CAAC;QACxB,KAAK,UAAU;YACb,OAAO,qBAAqB,CAAC;QAC/B,KAAK,UAAU;YACb,OAAO,gBAAgB,CAAC;QAC1B,KAAK,cAAc;YACjB,OAAO,cAAc,CAAC;IAC1B,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,KAAK,CAAC,EAAU;IACvB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,SAAS,GAAG,CAAC,IAAY;IACvB,uEAAuE;IACvE,uEAAuE;IACvE,oCAAoC;IACpC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC;AACpC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hatchkit/dev-plugin-next",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Next.js plugin for hatchkit's local-dev integration. Writes the project's Caddy fragment on `next dev` startup and prints a Tailscale-URL banner alongside Next's own startup output.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"README.md"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@hatchkit/dev-shared": "0.
|
|
19
|
+
"@hatchkit/dev-shared": "0.2.2"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"next": ">=14"
|