afraid-scarlet
afraid-scarlet•2y ago

How can we designate the application port?

This project will be running in a monorepo with a bunch of applications and 3000 is already taken. Is there a way to launch Refine on a particular port that we can specify?
3 Replies
afraid-scarlet
afraid-scarlet•2y ago
Nevermind, found it! Thanks anyways. For anyone who stumbles on this ticket:
// package.json
{
"scripts": {
"dev": "PORT=222 refine start"
}
}
// package.json
{
"scripts": {
"dev": "PORT=222 refine start"
}
}
dependent-tan
dependent-tan•2y ago
you can use PORT env variable to change. You can add this to npm script "dev": "PORT=3000 refine start Oh cool 😄
afraid-scarlet
afraid-scarlet•2y ago
thank you!