next-ai-editor 1.0.1 → 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 +0 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1006,13 +1006,6 @@ function MessageList({
|
|
|
1006
1006
|
] });
|
|
1007
1007
|
}
|
|
1008
1008
|
function getServiceUrl() {
|
|
1009
|
-
var _a, _b;
|
|
1010
|
-
if (typeof window !== "undefined" && ((_a = window.env) == null ? void 0 : _a.NEXT_PUBLIC_AI_EDITOR_SERVICE_URL)) {
|
|
1011
|
-
return window.env.NEXT_PUBLIC_AI_EDITOR_SERVICE_URL;
|
|
1012
|
-
}
|
|
1013
|
-
if (typeof process !== "undefined" && ((_b = process.env) == null ? void 0 : _b.NEXT_PUBLIC_AI_EDITOR_SERVICE_URL)) {
|
|
1014
|
-
return process.env.NEXT_PUBLIC_AI_EDITOR_SERVICE_URL;
|
|
1015
|
-
}
|
|
1016
1009
|
if (typeof window !== "undefined") {
|
|
1017
1010
|
const hostname = window.location.hostname;
|
|
1018
1011
|
if (hostname === "localhost" || hostname === "127.0.0.1") {
|