Explorar el Código

Merge branch 'dev' into feature-chaojie

username hace 1 año
padre
commit
57f3b91dc0
Se han modificado 4 ficheros con 115 adiciones y 2973 borrados
  1. 1 2
      next.config.mjs
  2. 3 2
      package.json
  3. 108 2969
      pnpm-lock.yaml
  4. 3 0
      src/utils/server/axios.ts

+ 1 - 2
next.config.mjs

@@ -5,10 +5,9 @@ const withNextIntl = createNextIntlPlugin();
 
 /** @type {import('next').NextConfig} */
 const nextConfig = {
+  output: 'standalone',
   reactStrictMode: true,
-  output:"standalone",
   transpilePackages: ['antd-mobile'],
-
   sassOptions: {
     prependData: `@import "./src/styles/variables.scss";`
   },

+ 3 - 2
package.json

@@ -4,10 +4,11 @@
   "private": true,
   "scripts": {
     "dev": "next dev",
-    "build": "next build",
+    "build": "next build && npm run move",
     "start": "next start",
     "lint": "next lint",
-    "preinstall": "npx only-allow pnpm"
+    "preinstall": "npx only-allow pnpm",
+    "move": "xcopy /e /i .next\\static .next\\standalone\\.next\\static"    
   },
   "dependencies": {
     "@nextui-org/react": "^2.4.2",

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 108 - 2969
pnpm-lock.yaml


+ 3 - 0
src/utils/server/axios.ts

@@ -1,5 +1,6 @@
 import { Toast } from "antd-mobile";
 import axios, { AxiosInstance, AxiosResponse, InternalAxiosRequestConfig } from "axios";
+
 import type { AxiosOptions } from "./type";
 type Result<T = any> = {
     code: number;
@@ -59,6 +60,7 @@ export default class Request {
                         });
                     }
                 }
+                
                 return config;
             },
             (error) => {
@@ -79,6 +81,7 @@ export default class Request {
                 return res;
             },
             (error) => {
+
                 if (responseInterceptorCatch) {
                     responseInterceptorCatch(error);
                 }

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio