I follow the step from Customer Portal | Yeti Switch but my test yeti customer portal stay y blank
I am using yeti 1.13.29
This is my nginx configuration
server {
listen 443 ssl;
server_name domain-test.com;
ssl_certificate /etc/letsencrypt/live/deomainapi-test.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/deomainapi-test.com/privkey.pem;
root /opt/yeti-client/dist;
index index.html;
location = /config.js {
default_type application/javascript;
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
}
location /api/ {
proxy_pass http://yeti-unicorn/api/rest/customer/;
proxy_set_header Host deomainapi-test.com;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
}
location / {
try_files $uri $uri/ /index.html;
}
}
File /opt/yeti-client/dist/config.js
window.YETI_CONFIG = {
yeti: {
apiBaseUrl: 'https://domain-test.com/api'
},
pagination: {
tableMessage: 'Showing {from} to {to} of {count} entries',
allMessage: 'All'
}
};
Google chrome log dev console
index-CJxDJvMq.js:612 Uncaught TypeError: Cannot read properties of undefined (reading 'tableMessage')
at index-CJxDJvMq.js:612:716287
at index-CJxDJvMq.js:1:142
at index-CJxDJvMq.js:629:6422
(anonymous) @ index-CJxDJvMq.js:612
(anonymous) @ index-CJxDJvMq.js:1
(anonymous) @ index-CJxDJvMq.js:629
