A machine-readable guide to this site for AI agents and language models is available at/llms.txt(https://dev.acquia.com/llms.txt on the production site).
For example, if your original start command was next start, change it to:
"start": "NODE_OPTIONS='-r ./acquia-autoscaling.js' next start"
This ensures that the monitoring script runs before your application starts. It makesthe metrics available and enables us to scale your application based on these metrics.
Place NODE_OPTIONS='-r ./acquia-autoscaling.js' immediately before the main entry point command of the Node.js application as shown in the preceding example. Placing it elsewhere in the startup command does not enable autoscaling.
Note: Autoscaling is not enabled if the monitoring script is not configured