next-ai-editor 1.0.0 → 1.0.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/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1008,12 +1008,12 @@ function MessageList({
|
|
|
1008
1008
|
] });
|
|
1009
1009
|
}
|
|
1010
1010
|
function getServiceUrl() {
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
return
|
|
1011
|
+
if (typeof window !== "undefined") {
|
|
1012
|
+
const hostname = window.location.hostname;
|
|
1013
|
+
if (hostname === "localhost" || hostname === "127.0.0.1") {
|
|
1014
|
+
return "http://localhost:3456";
|
|
1015
|
+
}
|
|
1016
|
+
return `https://${hostname}:3456`;
|
|
1017
1017
|
}
|
|
1018
1018
|
return "http://localhost:3456";
|
|
1019
1019
|
}
|