[GH-ISSUE #804] Please help me! #17076

Closed
opened 2026-04-15 15:01:42 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @devshahoriar on GitHub (Dec 7, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/804

Next js standalone build host on Cpanel everything working file in "bun dev" but when "bun run build" and standalone build host to cpanel get this error :
Screenshot (9)

I have done ->
Screenshot 2024-12-07 224007
Screenshot 2024-12-07 223953
Screenshot 2024-12-07 223943

Originally created by @devshahoriar on GitHub (Dec 7, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/804 Next js standalone build host on Cpanel everything working file in "bun dev" but when "bun run build" and standalone build host to cpanel get this error : ![Screenshot (9)](https://github.com/user-attachments/assets/5482b130-aae6-4320-a0f8-bfc7baad8c13) I have done -> ![Screenshot 2024-12-07 224007](https://github.com/user-attachments/assets/a3da774e-95ce-4dce-990c-15594db0cf37) ![Screenshot 2024-12-07 223953](https://github.com/user-attachments/assets/f392b134-5f8d-4167-81ec-0f2d123031d3) ![Screenshot 2024-12-07 223943](https://github.com/user-attachments/assets/393c2ba6-5726-4ff5-a449-365aa88457ee)
GiteaMirror added the locked label 2026-04-15 15:01:42 -05:00
Author
Owner

@sohamnandi77 commented on GitHub (Dec 7, 2024):

Where is BETTER_AUTH_URL ? that is required to pass i guess

<!-- gh-comment-id:2525250135 --> @sohamnandi77 commented on GitHub (Dec 7, 2024): Where is BETTER_AUTH_URL ? that is required to pass i guess
Author
Owner

@devshahoriar commented on GitHub (Dec 7, 2024):

Screenshot 2024-12-07 232155
Screenshot 2024-12-07 232146

<!-- gh-comment-id:2525251735 --> @devshahoriar commented on GitHub (Dec 7, 2024): ![Screenshot 2024-12-07 232155](https://github.com/user-attachments/assets/a8899bbc-8876-49d4-b165-4b04be7354e7) ![Screenshot 2024-12-07 232146](https://github.com/user-attachments/assets/507af60e-e53e-4421-8669-ba23927e7152)
Author
Owner

@devshahoriar commented on GitHub (Dec 7, 2024):

Screenshot 2024-12-07 232234

??

<!-- gh-comment-id:2525251854 --> @devshahoriar commented on GitHub (Dec 7, 2024): ![Screenshot 2024-12-07 232234](https://github.com/user-attachments/assets/87b42a7b-0259-4101-bcd2-aacbc1b13959) ??
Author
Owner

@Sama-004 commented on GitHub (Dec 7, 2024):

is APP_URL there in the env?

<!-- gh-comment-id:2525290564 --> @Sama-004 commented on GitHub (Dec 7, 2024): is APP_URL there in the env?
Author
Owner

@devshahoriar commented on GitHub (Dec 8, 2024):

I discovered it after about 10 hours."trustedOrigins" mast be given to production.

Screenshot 2024-12-08 115100
Screenshot 2024-12-08 115029

<!-- gh-comment-id:2525433891 --> @devshahoriar commented on GitHub (Dec 8, 2024): I discovered it after about 10 hours."trustedOrigins" mast be given to production. ![Screenshot 2024-12-08 115100](https://github.com/user-attachments/assets/b11d8c9f-a134-4b60-b727-2655b0a16656) ![Screenshot 2024-12-08 115029](https://github.com/user-attachments/assets/1f069839-fbae-44eb-bcd0-0ecf1117e9a1)
Author
Owner

@devshahoriar commented on GitHub (Dec 8, 2024):

"trustedOrigins" mast be given to production.

<!-- gh-comment-id:2525434068 --> @devshahoriar commented on GitHub (Dec 8, 2024): "trustedOrigins" mast be given to production.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#17076