-
Notifications
You must be signed in to change notification settings - Fork 12k
i18n with SSR configuration #30166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for your response, Alan! I have two follow-up questions:
Thanks in advance! |
The are marked as stable in v20 which is currently in prerelease and will be released as stable later next month.
The Express initialization was wrapped unnecessarily. You can change the code in |
Describe the problem that you experienced
Hi, I'm building an Angular SSR app with localization, I have followed the steps in the official documentation of adding the i18n package and ssr package as well.
The latest generated the following server.ts file:
When i run
ng build --localize
and thennode dist/ssr-new/server/en/server.js
the path of all of the static resources cannot be resolved. I see that anangular-app-engine-manifest.mjs
file is being genarated.Any suggestions of how to run locally the produced build and how to deploy it so that the static files are resolved correctly? I assume there are multiple ways (using proxy server or nginx redirects and etc.) but what is the suggested way of doing so and could it be documented somewhere?
Enter the URL of the topic with the problem
No response
Describe what you were looking for in the documentation
No response
Describe the actions that led you to experience the problem
No response
Describe what you want to experience that would fix the problem
No response
Add a screenshot if that helps illustrate the problem
No response
If this problem caused an exception or error, please paste it here
If the problem is browser-specific, please specify the device, OS, browser, and version
Provide any additional information here in as much as detail as you can
The text was updated successfully, but these errors were encountered: