bosia 0.6.12 → 0.6.13
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bosia",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A fast, batteries-included fullstack framework — SSR · Svelte 5 Runes · Bun · ElysiaJS. File-based routing inspired by SvelteKit. No Node.js, no Vite, no adapters.",
|
|
6
6
|
"keywords": [
|
|
@@ -163,7 +163,11 @@ export function inspector(options: InspectorOptions = {}): BosiaPlugin | false {
|
|
|
163
163
|
if (process.env.NODE_ENV === "production") return false;
|
|
164
164
|
const editor = options.editor ?? "code";
|
|
165
165
|
const endpoint = options.endpoint ?? "/__bosia/locate";
|
|
166
|
-
|
|
166
|
+
// Env override lets hosts (e.g. bosapi running the app inside a podman
|
|
167
|
+
// container) point inspector POSTs at an address reachable from inside
|
|
168
|
+
// the sandbox, since the URL baked into bosia.config.ts resolves to the
|
|
169
|
+
// container's own loopback there.
|
|
170
|
+
const aiEndpoint = process.env.BOSIA_INSPECTOR_AI_ENDPOINT?.trim() || options.aiEndpoint;
|
|
167
171
|
const errorsEnabled = options.errorsEnabled !== false;
|
|
168
172
|
|
|
169
173
|
return {
|