Closed lnavarroa closed 11 months ago
Hey @lnavarroa, thanks for the issue. I don't think I have seen this issue yet. Could you provide a reproduction for this?
hi, thanks, this is the basic page of blitz, in my localhost it works, but I have a interser vps, using direct admin as administrator panel. I have follow the instructions
Then, I did do blitz build blitz export
connect to my server with ftp and deploy the out directory content
in the index.tsx file I have comment the UserInfo
`const UserInfo = () => { const currentUser = useCurrentUser() const [logoutMutation] = useMutation(logout)
if (currentUser) { return ( <> <button className={styles.button} onClick={async () => { await logoutMutation() }}
Logout
User id:{currentUser.id}
User role:{currentUser.role}
</> ) } else { return ( <>
Sign Up Login</> ) } } `
When I did comment the code above my site works on production server and my site is up, but if I use this code on production it crash
Hey @lnavarroa, thanks for the issue. I don't think I have seen this issue yet. Could you provide a reproduction for this?
the problem its the 'src/users/hooks/useCurrentUser' file, it sending a NULL JSON
What is the problem?
Hi, I have this problem on my static server, I have deploy my app to my vps server as static page, then when I try to access to https://mypage.com the page show "400 Failed to parse json from /getCurrentUser"
Paste all your error logs here:
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem: