Modify HTML before sending to browser #79339
Unanswered
anjan-kp
asked this question in
App Router
Replies: 2 comments 11 replies
-
Just curious, why wouldn't you do this in your source code? That being said, middleware in Next.js is not designed for that. And also React tends to raise hydration errors. See this issue, #78956 |
Beta Was this translation helpful? Give feedback.
2 replies
-
I am looking for a response interceptor to modify the final html generated by nextJS server before sending it to client's browser. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to modify html before sending to browser.
I am trying to replace all ® [registered mark] with ® ..
That means ® should be available when I check view-source of the page.
Can I achieve it using middleware OR custom server?
I am using nextJS 15+ Typescript with App router.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions