Reputation: 23
I am currently trying to host an Angular 19 application with i18n support on Vercel. When building an app with the different localizations, the build files are located under:
app/project-name/browser/en-US/
app/project-name/browser/zh/
app/project-name/browser/ja/
app/project-name/browser/ko/
If I try to deploy my angular app with localizations enabled, it can not find the build files anymore. This is because it expects them to be under app/project-name/browser
.
I want Vercel to be able to redirect like this:
/ -> /en-US/
/en-US/ -> app/project-name/browser/en-US/
/zh/ -> app/project-name/browser/zh/
/ja/ -> app/project-name/browser/ja/
/ko/ -> app/project-name/browser/ko/
If Vercel does not support this, is there any other host which supports this functionality? Nginx should be able to solve this, but I think Vercel does not support this.
Upvotes: 0
Views: 18