From a95179dca54491eb326cb8fbd108cd674eda58bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hanu=C5=A1?= Date: Sun, 5 Jul 2026 13:58:28 +0200 Subject: [PATCH] docs(apify-actor-development): create `.actorignore` after scaffolding --- skills/apify-actor-development/SKILL.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/skills/apify-actor-development/SKILL.md b/skills/apify-actor-development/SKILL.md index ce02412..3396c56 100644 --- a/skills/apify-actor-development/SKILL.md +++ b/skills/apify-actor-development/SKILL.md @@ -63,6 +63,24 @@ If browser login isn't available (headless environment or CI), the CLI automatic Use the appropriate CLI command based on the user's language choice. Additional packages (Crawlee, Playwright, etc.) can be installed later as needed. +### Create `.actorignore` after scaffolding + +Apify templates (including `ts_empty`, `project_empty`, `python-empty`) do not include a `.actorignore` file, even though `apify push` honors one if present. Without it, every `apify push` uploads `node_modules/`, `dist/`, build caches, `.git/`, and anything else in the working tree — bloating the upload and shipping local build artifacts the multi-stage Dockerfile regenerates anyway. + +Create `.actorignore` at the project root with at minimum: + +``` +node_modules +dist +.git +.env* +*.log +coverage +.DS_Store +``` + +Syntax is `.gitignore`-style. + ## Quick start workflow 1. **Create Actor project** - Run the appropriate `apify create` command based on user's language preference (see Template selection above)