Closed TheChalice closed 6 months ago
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Routine inspection
Function description Hello, I want to access fastgt normally on http://localhost:3000/test. Can this requirement be achieved? I added basePath: '/test' to next.config.js, but this will make the api all 404, do you have any good solutions here? Application Scenario
Related Examples
这个可以考虑 nginx 重定向。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Is it written like this? server { listen 8888;
server_name 10.1.251.131;
location /test/ {
rewrite ^/test/(.*)$ /$1 break;
proxy
请问可以这样写吗
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Could you please write it like this?
估计不太行,在接口中使用的都是 / 的相对域名地址。
估计不太行,在接口中使用的都是 / 的相对域名地址。
我只设置过,拦截 /api,转向其他地方。
请你问解决二级路由重定向的问题了吗,我也遇到了和你相同的问题
例行检查
功能描述 您好,我想在http://localhost:3000/test上正常访问fastgt,请问这个需求可以实现吗,我在next.config.js里加了 basePath: '/test',但这样就会让api全部404,请问您这边有什么好的解决方案吗 应用场景
相关示例