We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39bb2ee commit 7c652bdCopy full SHA for 7c652bd
app-engine/frontend/src/pages/components/text-editor.tsx
@@ -21,7 +21,6 @@ import 'tinymce/plugins/wordcount/index.js';
21
import 'tinymce/skins/ui/oxide/skin.min.css';
22
import 'tinymce/themes/silver/theme.min.js';
23
const { AIPP_URL } = serviceConfig;
24
-const { NODE_ENV, PACKAGE_NODE }= process.env;
25
26
/**
27
* 发布应用富文本编辑器组件
@@ -79,7 +78,7 @@ const TextEditor = forwardRef((props, ref) => {
79
78
80
// 基于环境调整tinymce初始化文件路径
81
const adjustInitPathByEnv = url => {
82
- if (NODE_ENV === 'production' && PACKAGE_NODE === 'spa') {
+ if (process.env.NODE_ENV === 'production' && process.env.PACKAGE_MODE === 'spa') {
83
return `/apps/appengine/${url}`;
84
}
85
return url;
0 commit comments