I've been trying to get my code running on a 'prod' server. I think I am close. I'm getting an error linked to the use('web').user in the config/inertia.ts file that I'm not getting locally, and not sure why. There is no user logged in on the login page, but that's the same locally. Any ideas why it works locally but not on the server?
sharedData: { user: (ctx) => { const user = ctx.auth.use('web').user return user && new UserDto(user) },Copied!