Skip to content

Commit 1935888

Browse files
mnenciagbartolini
authored andcommitted
docs(readme): add production build testing section
Explains how to test production-only features like redirects using yarn build and yarn serve, addressing confusion from PR Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> #38 where redirects only work in production builds.
1 parent 3843e56 commit 1935888

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,20 @@ yarn build
6363
This command generates static content into the `build` directory and can be
6464
served using any static contents hosting service.
6565

66+
## Testing Production Features
67+
68+
Some features, like redirects, only work in production builds and are not
69+
available during local development (`yarn start`). To test these features
70+
locally:
71+
72+
```bash
73+
yarn build
74+
yarn serve
75+
```
76+
77+
This builds the site and serves it locally, allowing you to test production-only
78+
features.
79+
6680
## Deployment
6781

6882
Using SSH:

0 commit comments

Comments
 (0)