zhengyiming
7 天以前 cf727afa850496f3a239907fab342b4bd3ff77fc
vite.config.ts
@@ -56,7 +56,9 @@
    // 服务端渲染
    server: {
      // 是否开启 https
      // https: false,
      // https: {
      // },
      // 端口号
      port: VITE_PORT,
      host: '0.0.0.0',
@@ -72,7 +74,7 @@
                // ws: true,
                changeOrigin: true,
                rewrite: (path: string) => {
                  console.log('path: ', path);
                  console.log('path: ', path, path.replace(/^\/api/, ''));
                  return path.replace(/^\/api/, '');
                },
              },