Fetching messages from remote source after build #585
Replies: 1 comment 1 reply
-
Did you found a solution? |
Beta Was this translation helpful? Give feedback.
-
Did you found a solution? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
First of all I want to say thanks to all maintainers and the whole next-intl community for a great piece of software, I really appreciate the work you are all putting in to it. 🙏🏻
My question is about fetching message json files from a remote source (S3) for use in Client Components. Please bear with me if the answer to my question is obvious, I'm new to more or less everything in the project, so it might be that I'm struggling with something fairly straight forward. I tried to look for similar discussions in issues and here in discussions, but wasn't able to find anything that would answer this question.
Initially we had the json files locally in the repo but then switched to fetching them from S3. This lead to the build being dependent on access to S3, which caused a few issues. So my question is there a way to fetch the messages only after the build? And how would one go about it?
Current setup is essentially the same as in this example from the next-intl docs. The only difference really is that the file is fetched and not imported.
Any help or pointers are greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions