-
The constructs here are pretty much mind-blowing. Thanks a lot! Are there references on how I can incorporate the runtime-config.json with Amplify React TS? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hey Martin! Thanks for the feedback! 😁 I think the best example we have is part of the The runtime-config.json file is written to the root of the static website's s3 bucket at deployment time, so the website can pull it down with Hope that helps! Cheers, |
Beta Was this translation helpful? Give feedback.
-
BTW your amazing work here is gaining some interest and the community can provide more feedback soon, I hope :). https://cdk-dev.slack.com/archives/C018XT6REKT/p1657088693244409 |
Beta Was this translation helpful? Give feedback.
Hey Martin!
Thanks for the feedback! 😁
I think the best example we have is part of the
awsui-react-ts-website
project here: https://github.com/aws/aws-prototyping-sdk/blob/mainline/packages/awsui-react-ts-website/samples/src/Auth.tsx#L76-L97The runtime-config.json file is written to the root of the static website's s3 bucket at deployment time, so the website can pull it down with
fetch('/runtime-config.json')
and plug the values into Amplify :)Hope that helps!
Cheers,
Jack