Deployments and Infrastructure > Extensions > Production Environments
Production Environments
Learn how to designate additional environments as production environments in Webiny.
WHAT YOU'LL LEARN
- what production deployment mode means in Webiny
- how to designate additional environments as production environments
Overview
By default, prod and production environments are treated as production environments and deployed using the production deployment mode. In this mode, Webiny deploys a more resilient and performant infrastructure configuration.
If you use additional environments that should also be treated as production (e.g. staging), use Infra.ProductionEnvironments.
Configuration
webiny.config.tsx
import React from "react";
import { Infra } from "webiny/extensions";
export const Extensions = () => {
return (
<>
<Infra.ProductionEnvironments environments={["prod", "staging"]} />
</>
);
};Redeploying After Changes
After making changes, redeploy by running the webiny deploy command:
yarn webiny deployUse --env <name> to target a specific environment if needed.