How to enable incremental build in AWS Amplify #31939
-
|
I enabled .cache and public folder to be cached in build settings, Is there any workaround for that? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Any update on this? |
Beta Was this translation helpful? Give feedback.
-
|
Any update on this ? |
Beta Was this translation helpful? Give feedback.
-
|
@lemoner-rajesh I was able to get it working. The problem is that each new build contains the build ID in the path, which breaks the caching since the folder structure contains a hash of the absolute file path. Below is my amplify build.yml which works with the current Amazon Linux 2023 build image. You will need to tweak the paths to suit the path of your frontend code from your repo. |
Beta Was this translation helpful? Give feedback.
Thanks @AnilSonix