After antPro (react) is compiled, the access page is blank, and there is workbox information in the console.

after antPro is compiled, using the nginx agent, the nginx is configured as follows:

    server {
        listen       8080;
        server_name  localhost;

        -sharpcharset koi8-r;

        -sharpaccess_log  logs/host.access.log  main;

        location / {
            root   C:\project_name\dist;
            index  index.html index.htm;
        }

        location ^~/api/ {
            proxy_pass  http://192.168.33.33:9999/;
        }

        -sharperror_page  404              /404.html;

        -sharp redirect server error pages to the static page /50x.html
        -sharp
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }


In the

api file, it is written like this:

export async function queryGoods() {
  return request("/api/order/getgoods/");
}

has also checked a lot of relevant information on the Internet, and the solution is roughly as follows:
1, add the homepage field in package.json;
2, change the routing mode to hash;

but the above two points do not work. How on earth should I configure them?
Thank you very much.

May.09,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3f28a-661b2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3f28a-661b2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?