- 使用 Nginx 将 /phone/* 请求反向代理为 /*
- 启动项目
serve -s ./build -l 3000
- 项目内路由仍然是 /phone/xxx 不用改动, 但需要在 package.json 中, 指定静态资源根目录
{
...
"homepage": "/phone/",
...
}
标签:...,项目,React,phone,SPA,带路
From: https://www.cnblogs.com/livebz/p/17408806.html
serve -s ./build -l 3000
{
...
"homepage": "/phone/",
...
}
标签:...,项目,React,phone,SPA,带路
From: https://www.cnblogs.com/livebz/p/17408806.html