xiaolin.fu 1 rok pred
rodič
commit
a823109c99
3 zmenil súbory, kde vykonal 6 pridanie a 1 odobranie
  1. 1 0
      next.config.mjs
  2. 3 0
      src/utils/server/axios.ts
  3. 2 1
      src/utils/server/index.ts

+ 1 - 0
next.config.mjs

@@ -5,6 +5,7 @@ const withNextIntl = createNextIntlPlugin();
 
 /** @type {import('next').NextConfig} */
 const nextConfig = {
+  output: 'standalone',
   reactStrictMode: true,
   transpilePackages: ['antd-mobile'],
   sassOptions: {

+ 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);
                 }

+ 2 - 1
src/utils/server/index.ts

@@ -2,7 +2,8 @@ import Request from "./axios";
 const server = new Request({
     timeout: 10 * 1000,
     // baseURL: "http://127.0.0.1:4523/m1/4790544-4444647-default",
-    baseURL: "http://192.168.0.66:6060",
+    // baseURL: "http://192.168.0.66:6060",
+    baseURL: "http://206.168.191.125:8800",
     transform: {
         // instance  interceptor
         requestInterceptor: (config) => {