a year ago
i cant serve my page this is scripts: "scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"start": "serve dist -s -n -L -p $PORT"
},
Im using vite react with typescript but it dont work i need support
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
a year ago
First though that comes to mind, do you have serve
as a dependency in your package.json? because that start command does look correct to me. If not, add it.
Are you overwriting the start command elsewhere? Procfile, railway.json, service settings, etc? if so, remove the start command from anywhere but the package.json.
And if these suggestions don't help, please share your build and deploy logs -