diff --git a/src/common/createplay/CreatePlay.jsx b/src/common/createplay/CreatePlay.jsx index 30476b62f..133f72bea 100644 --- a/src/common/createplay/CreatePlay.jsx +++ b/src/common/createplay/CreatePlay.jsx @@ -121,7 +121,7 @@ const CreatePlay = () => { if (refreshToken) { console.log(refreshToken); } else { - window.location = NHOST.AUTH_URL('http://localhost:3000/plays/create'); + window.location = NHOST.AUTH_URL(`http://localhost:${process.env.RAECT_APP_DEV_PORT ?? '3000'}/plays/create`); return null; } } else {