#Invalid Host Header issue - React App
26 messages · Page 1 of 1 (latest)
Project ID: N/A
@half crest :)
No way
🙂
I don't know react and am doing a project
react-scripts start starts a development server, lots of issues with that besides being a resource hog
okay gotcha what should I use instead
idc about resource hog this is temporary
`
╔════════ Nixpacks v1.19.0 ═══════╗
║ setup │ nodejs_18, npm-8_x ║
║─────────────────────────────────║
║ install │ npm ci ║
║─────────────────────────────────║
║ build │ npm run build ║
║─────────────────────────────────║
║ start │ npm run start ║
╚═════════════════════════════════╝
`
https://github.com/brody192/create-react-app-starter
copy the Caddyfile and nixpacks.toml from this repo into yours
(triple back ticks)
new build logs please
looks good, theres no http requests there, so you are likely hitting the cache
wait sorry I was looking at production
preproduction looks like it's working! ty brody lifesaver
no problem!
Brody saves the day, again
I will never learn js
based