For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create React App

Deploy Create React App projects as static sites on Hostinger, covering build settings, output directory, routing fallback, and REACT_APP_ env variables.

Classic React tooling built on react-scripts. Builds to a static bundle that Hostinger serves directly — no server process.

app_type: create-react-app

Note: Create React App is deprecated upstream. For new projects, prefer React + Vite — but existing CRA projects deploy fine.

Static mode

CRA is static-only.

package.json

{
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build"
  },
  "dependencies": {
    "react": "^18.3.0",
    "react-dom": "^18.3.0",
    "react-scripts": "5.0.1"
  }
}

Hostinger detects CRA from the react-scripts dependency.

hPanel settings

Field
Value

Application type

create-react-app

Build script

build

Output directory

build

Entry file

Server mode

Not applicable. For SSR with React, use Next.js or React Router.

Notes

  • Client-side routing (React Router in library mode) works out of the box — unknown paths fall back to index.html.

  • Environment variables baked into the bundle must be prefixed REACT_APP_ and set before the build. See Environment Variables.


Last updated: July 22, 2026

Last updated

Was this helpful?