Wangbo 3 weeks ago
parent
commit
c7be468843

+ 1 - 1
app/(commonLayout)/database/Container.tsx

@@ -7,7 +7,7 @@ import { useTranslation } from 'react-i18next'
 import { useDebounceFn } from 'ahooks'
 
 // Components
-import ExternalAPIPanel from '../../components/datasets/external-api/external-api-panel'
+import ExternalAPIPanel from '@/app/components/datasets/external-api/external-api-panel'
 import Datasets from './Datasets'
 import Database from './Database'
 

+ 1 - 1
app/(commonLayout)/database/datasets/Container.tsx

@@ -7,7 +7,7 @@ import { useTranslation } from 'react-i18next'
 import { useDebounceFn } from 'ahooks'
 
 // Components
-import ExternalAPIPanel from '../../components/datasets/external-api/external-api-panel'
+import ExternalAPIPanel from '@/app/components/datasets/external-api/external-api-panel'
 import Datasets from './Datasets'
 import Database from './Database'
 

+ 1 - 1
package.json

@@ -8,7 +8,7 @@
   "scripts": {
     "dev": "next dev",
     "build": "next build",
-    "start": "cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public && cross-env PORT=$npm_config_port HOSTNAME=$npm_config_host node .next/standalone/server.js",
+    "start": "xcopy .next\\static .next\\standalone\\.next\\static /E /I && xcopy public .next\\standalone\\public /E /I && cross-env PORT=$npm_config_port HOSTNAME=$npm_config_host node .next\\standalone\\server.js",
     "lint": "next lint",
     "fix": "next lint --fix",
     "eslint-fix": "eslint --fix",