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

Netlify rewrite issues #1663

Open
mg-aceik opened this issue Nov 14, 2023 · 2 comments
Open

Netlify rewrite issues #1663

mg-aceik opened this issue Nov 14, 2023 · 2 comments
Labels
backlog Issue/PR/discussion is reviewed and added to backlog for the further work 🐞 bug

Comments

@mg-aceik
Copy link

Describe the Bug

I'm doing a POC on Netlify and have run into a few issues.
First, ran into opennextjs/opennextjs-netlify#2284 where the OOTB next.config.js rewrites don't work. Had to force downgrade to 13.4.12 and use --legacy-peer-deps as it conflicted with JSS 21.5.0.
That worked for /-/jssmedia rewrites but not /-/media. I haven't been able to resolve that.
The next issue is that calling next/image seems to be having issues too - gives a 400 bad request.
Upgrading to Next 13.5.x gives this issue.

I realise this is all Netlify so just opening here for visibility and perhaps you can escalate via the new Sitecore and Netlify partnership channels.

To Reproduce

Try Next.js on Netlify and use the default rewrites.

Expected Behavior

Rewrites should work.

Possible Fix

No response

Provide environment information

  • Sitecore Version: XM Cloud
  • JSS Version: 21.5.0
@illiakovalenko illiakovalenko added the backlog Issue/PR/discussion is reviewed and added to backlog for the further work label Nov 20, 2023
@illiakovalenko
Copy link
Contributor

@mg-aceik Thank you for submitting your contribution! I've added a ticket containing all the details. It has been added to our internal backlog for thorough review

@jflheureux
Copy link
Contributor

Any updates to this issue. I am running into very similar issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Issue/PR/discussion is reviewed and added to backlog for the further work 🐞 bug
Projects
None yet
Development

No branches or pull requests

3 participants