8000 Unable to fetch posts on production server, encountering client-side exceptions. · Issue #47 · safak/next-blog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Unable to fetch posts on production server, encountering client-side exceptions. #47
Open
@starlove54

Description

@starlove54

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0