Skip to content

basePath option is not working #131

Closed
@vitorbal

Description

@vitorbal

Describe the bug
If you set up a very simple nextjs app with the basePath option configured, the deployed website will 404 a bunch of static asset paths. Here's an example for a basePath of /cats-of-zapier:

To Reproduce
Steps to reproduce the behavior:

  1. Create a new next.js app
  2. Add basePath: '/foo' to next.config.js
  3. Deploy the app to netlify
  4. Navigate to the deployment and notice how all of the prefixed assets 404

Expected behavior
For the app to be served correctly, with no 404s.

Versions

  • Next.js: 10.0.7
  • plugin (if installed at fixed version): latest, I guess? Enabled from the Netlify UI

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions