#Could not find index.html in the admin build directory

2 messages · Page 1 of 1 (latest)

humble rose
#

Hello, has anyone encountered the prompt "Could not find index.html in the admin build directory. Make sure to run 'medusa build' before start" when deploying medusajs in railroad or DO? I followed the document https://docs.medusajs.com/resources/deployment/medusa-application/railway to deploy, and the work is fine. However, the server will fail when only adding admin. I did yarn build locally, and index.html was built normally. I tried to upload all the local files, but it didn't work.

NODE_ENV="production"
COOKIE_SECRET="sk_cookieXXXX"
JWT_SECRET="sk_jwt_XXXX"
STORE_CORS=""
ADMIN_CORS="
"
AUTH_CORS="*"
DISABLE_MEDUSA_ADMIN="false"
MEDUSA_WORKER_MODE="server"
PORT="9000"
DATABASE_URL="${{Postgres.DATABASE_URL}}"
REDIS_URL="${{Redis.REDIS_URL}}?family=0"
MEDUSA_BACKEND_URL="https://${{RAILWAY_PUBLIC_DOMAIN}}"

Explore Medusa's recipes, API references, configurations, storefront guides, and more.

high imp
#

Did you solve it?