Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to fetch posts on production server, encountering client-side exceptions. #47

Open
starlove54 opened this issue Jun 28, 2024 · 0 comments

Comments

@starlove54
Copy link

starlove54 commented Jun 28, 2024

I am facing issues fetching posts on the production server of my Next.js application. The application throws an “Application error: a client-side exception has occurred” message. This issue does not occur in local development (http://localhost:3000).

Steps to Reproduce:

1.Navigate to a post page on the production server, e.g., https://domain-name/posts/[slug].
2.Observe the browser console for errors.
3.Note the network requests and responses, especially for chunk files like page-[slug].js.

Expected Behavior:

Posts should load successfully on the production server, similar to how they load in local development.

Actual Behavior:

Encountering client-side exceptions, specifically 404 Not Found errors for chunk files like page-[slug].js.

Screenshot

Screenshot 2024-06-28 at 3 20 31 PM

Environment:

Local Development: Works as expected.
Production Server: Fails to fetch posts, encountering client-side exceptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant