From c1f47e3dd9ac1b432df71e7780fbb01c357f8d10 Mon Sep 17 00:00:00 2001 From: Taras Postument Date: Mon, 9 Dec 2024 16:50:16 +0000 Subject: [PATCH] try to setup swap space --- amplify.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/amplify.yml b/amplify.yml index 74b703b..ab7d404 100644 --- a/amplify.yml +++ b/amplify.yml @@ -4,6 +4,13 @@ frontend: preBuild: commands: - yarn + - echo "Setting up swap space..." + - sudo fallocate -l 40G /swapfile + - sudo chmod 600 /swapfile + - sudo mkswap /swapfile + - sudo swapon /swapfile + - sudo swapon -s + - echo "✅ Done setting up swap space!" build: commands: - yarn build --out-dir build//docusaurus