Open Minhnhat0408 opened 1 year ago
Alternatively, you can configure redirection via nginx. For example, you can remove the default locale and stop only additional ones in the url.
server {
listen 80;
server_name test.com;
location / {
rewrite ^/(.*)$ /en/$1 break;
proxy_pass http://your_app_server;
}
}
I don't really get what you mean, I don't use nginx. Can you be more precise.
hey @Minhnhat0408, have you solved this issue somehow? I have similar problem now, open graph image is not displaying for my root url.
Verify canary release
Provide environment information
Which example does this report relate to?
https://github.com/vercel/next.js/tree/canary/examples/app-dir-i18n-routing
What browser are you using? (if relevant)
Chrome
How are you deploying your application? (if relevant)
Vercel
Describe the Bug
but seem like it just doesn't help at all. The problem :
Expected Behavior
It should also have the metadata in the root url.
To Reproduce
Clone the app-dir-i18n-routing repo, add a simple layout.tsx file with and
(i think that next would not recognize a root layout without tag under app repository, or clone my repo Hub Media: Then to see opengraph you can dowload extension or deploy it then sent the root url in messenger app or twitter. also you can have my deploy link in the github repo.