|
1
|
If you get the following error when you start the Medusa application, typically in production: |
|
2
|
|
|
3
|
```bash |
|
4
|
Could not find index.html in the admin build directory. Make sure to run 'medusa build' before starting the server. |
|
5
|
``` |
|
6
|
|
|
7
|
## Why this Error Occurred |
|
8
|
|
|
9
|
This error occurs if you didn't follow the build process correctly. For example, you don't have an `.env.production` file or you ran the `start` command outside the `.medusa/server` directory. |
|
10
|
|
|
11
|
--- |
|
12
|
|
|
13
|
## How to Fix it |
|
14
|
|
|
15
|
To fix this error, make sure you follow the build process correctly as explained in the [Build](!docs!/learn/build) documentation. |
|
16
|
|
|
17
|
You can also follow the [General Deployment](!docs!/learn/deployment/general) documentation if you're facing this error in your deployed application. This guide gives you the general steps to follow when deploying your Medusa application. |