zhengyiming
6 天以前 20459fe59f680031bfc7c1012be860e0727cb016
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/, '');
                },
              },