Мои текущие настройки
. Для этого я установил в свой пакет. json
"homepage": "https://example.com/register/"
и в моем App.js
<Router history={history} basename="/register">
</Router>
Мой NGINX выглядит следующим образом:
server {
listen 5400;
access_log /var/log/nginx/wordpress-access.log;
error_log /var/log/nginx/wordpress-error.log;
location / {
root /home/ubuntu/...../build/;
index index.html;
expires 1d;
try_files $uri /index.html;
}
}
server {
listen 443 ssl;
listen [::]:443;
index index.php index.html index.htm;
server_name example.com;
location / {
... old setup
}
location /register {
proxy_pass http://127.0.1.1:5400/;
}
}
Вот что я хочу сделать. Я хочу разместить такое же приложение реакции в URLexample.com/pricing
.
Как мне этого добиться? Я хочу иметь наименьшее дублирование кода / логики и т. Д.