| services: | |
| - type: web | |
| name: page-screenshot-api | |
| env: docker | |
| repo: https://github.com/yourusername/page-shot.git # 替换为你的GitHub仓库 | |
| dockerfilePath: ./Dockerfile | |
| envVars: | |
| - key: NODE_ENV | |
| value: production | |
| - key: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD | |
| value: "true" | |
| - key: PUPPETEER_EXECUTABLE_PATH | |
| value: "/usr/bin/google-chrome-stable" | |
| healthCheckPath: / | |
| numInstances: 1 | |
| plan: free # 明确指定免费计划 | |
| buildFilter: | |
| paths: | |
| - "**" | |
| ignoredPaths: | |
| - "node_modules/**" | |
| - ".git/**" |