Questions tagged [nextjs-rewrites]
29 questions
0
votes
0 answers
it will not show the logo the image next js react
unable to see the image
{/* Mobil Navigation */}
{isUserLoggedIn ? (

Ged Endal
- 11
- 1
0
votes
0 answers
Nextjs | getStaticPaths | Error: Call retries were exceeded
Got "Call retries were exceeded" error when i got to dynamic slug page, as per the discussion
github i downgraded my project from 13 to 12 version, but still getting same issue. let me share my error screenshot first then i will share my code…

shazim ali
- 360
- 4
- 18
0
votes
0 answers
NextResponse.rewrite does not work (return blank page)
Trying to implement maintenance mode using middleware.
If i try NextResponse.next() after the rewrite, website loads normally and does not go to
maintenance page. I got correct response with html page in network tab, but its not showing.
If i try…

lowzyyy
- 53
- 4
0
votes
0 answers
301 status code cause rewrites to be redirect
I'm try to setup rewrites to deal with CORS issue
but the destination with status code 301 caused the client to fetch from the destination
nextjs version 12.2.3
async rewrites() {
return [
{
source: "/google-image/",
…

user15333414
- 15
- 5
0
votes
0 answers
How to use subdomain routing when a base path is present (and with base path appended only to specific routes)?
I have a nextjs (v13) app with basePath
basePath: /basePath in nextjs.config
NOT using a custom subdomain in production: https://DEPLOYED_URL/basePath/...
pages/
index.tsx # route: DEPLOYED_URL/basePath
subpath/index.tsx # route:…

dragonmnl
- 14,578
- 33
- 84
- 129
0
votes
0 answers
Next Js 13.3.0 rewrites doesn't work for external API
I'm trying to call an external API using rewrites from Next server to avoid CORS error. To do that I've been reading Next docs Rewrites but is not working for me.
My next.config.js file is like this:
module.exports = {
reactStrictMode: true,
…

Patricio Urbieta
- 1
- 2
0
votes
0 answers
Next.js fallback rewrites return no props from getServerSideProps, when accessed via next/link on Vercel
I have rewrites defined under afterFiles: and fallback: in next.config.js
In my local dev environment, both sets of rewrites work perfectly.
When running on Vercel, the fallback rewrites do not work properly with my getServerSideProps functions…

user5801710
- 301
- 1
- 9
0
votes
0 answers
Link Component Causes Full Page Refresh & CSS Overwriting Issues with Bootstrap in Next.js Deployment on Vercel
I am currently using the 13.2.5-canary.4 version of Next.js. While everything appears to be functioning properly in my local environment, I have encountered a number of issues when attempting to deploy my application on Vercel.
The first issue is…

RL89
- 1,866
- 5
- 22
- 39
0
votes
0 answers
Next.js: undefined props in URLs set in the rewrites of next.config.js
Hello very good morning,
I'm building an App with Next.js and I'm facing the following problem.
I want to get the data rendered from the client on a page and I have the following:
// pages/news.jsx
export default function News ({ title }) {
…

Dobo
- 1
- 1
0
votes
0 answers
Nestjs and firebase connection issue (can't reach next page)
`I'm using Nextjs in my code but I faced this problem -
Firebase connection is working but the issue is with tag. It should follow this router.push("/dashboard") but it's not because of Form tag.
My coding is not working with the tag
import…

Tasfiul Hedayet
- 1
- 1
0
votes
0 answers
How do i setting next.config.js rewrites with dynamic routing?
I use rewrites() to solve CORS error and it works ,
But dynamic routing does not work because of rewrites() - source & destination
(I think dynamic routing does not work because of -> "/:path*" )
I expect no CORS error and Dynamic routing at…

attosiss
- 1
- 1
0
votes
1 answer
How to access html file inside iframe in production
I am creating a web app where, this app will generate a .html file in public/ directory. And after that i want to show that generated html file on a page using iframe .
I am using NextJS for this task. I have configured next.config.js for rewrites…

Kheem
- 11
- 1
0
votes
0 answers
Why js are not loading initial is coming while doing optimization I loaded js for once only in app
I loaded Google map and scripts in next js once in useEffect _app.tsx file instead _document.js file to avoid initial loading in order to increase responsiveness.
When I am keeping open site for half n hour and refreshing - it is showing js not…

Veena Kamurti
- 1
- 1
0
votes
0 answers
Next Js does not proxying API requests
I'm new to next and I'm facing the following problem and i will be glad for your help
In my next application i use rewrites to get around cors during api requests.
async rewrites() {
return [
{
source: '/api/:path*',
…

Vladyslav
- 51
- 4