See [Configuration Reference](https://vitejs.dev/guide/).
server.railway.json and server2.railway.json in the root and set that in the service settings too
{ "$schema": "https://schema.up.railway.app/railway.schema.json", "services" : [ { "name": "server", "build": { "builder": "NIXPACKS", "buildCommand": "./gradlew -p server clean build -x check -x test" }, "deploy": { "startCommand": "java $JAVA_OPTS -jar server/build/libs/*-all.jar" } }, { "name": "service2", "build": { "builder": "NIXPACKS", "buildCommand": "./gradlew -p server2 clean build -x check -x test" }, "deploy": { "startCommand": "java $JAVA_OPTS -jar server2/build/libs/*-all.jar" } } ]}