Closed Autumnlight02 closed 1 year ago
Thank you for your feedback. Sorry, I could not understand your issue. Could you give us your more details context please?
So basically I am deploying my Nuxt website on aws lambda and S3, issue is now that I18N tries to fetch the translations from aws lambda instead of S3, I entered in the config a different url but it will be ignored)
你好! 我貌似遇到同样的问题 i18n: { baseUrl: "https:/xxxx/www/2.0.12/, }, app:{ cdnURL:'https:/xxxx/www/2.0.12/' } nginx 或者 node 启动后 依旧找这个目录下文件 https:/xxxx/i18n/prerender/bd8fb014.js 正常目录应该 https:/xxxx/www/2.0.12/i18n/prerender/bd8fb014.js 非常感谢能帮排查下吗?^_^
+1
Environment
Reproduction
Just try to set the baseUrl or the cdnUrl, and see if the translations are also being requested from that Url.
Describe the bug
Hello everyone, I recently ran recently into an issue. My Nuxt Project is deployed on AWS Lambda and In addition I keep static files in S3. Now the issue is that the I18N Configuration ignores the CDN path I have in S3.
My goal is now to archive that i18n pulls the translation from the s3 bucket. Do you guys know perhaps how I can set the CDN link for the translations specifically? (The rest of the app uses the static files just fine. Its just I18N)
Additional context
This is part of my nuxt.config.ts
And this is the entire i18n.config.js
i tried multiple times but I18N always defaults back to the relative path. Inside of the build folder its also structured like this:
package.json
Logs
No response