score:1
make a vercel.json and paste the redirect rules code. save the file in your root directory, then redeploy.
{
"routes": [{ "src": "/[^.]+", "dest": "/", "status": 200 }]
}
Source: stackoverflow.com
Related Query
- Page works on initial page load, but if i refresh the page I get an 404 error with Zeit, Nextjs & now
- I get a 404 error on Heroku but it works locally
- initialValues works the first time, but after page refresh breaks the page, REACT/REDUX
- React useContext doesn't update the child component, but works on page refresh
- React Router Dom Issue - localhost:3000/products to localhost:3000/products/2 is working fine but when I refresh page then I get some error in console
- my react code is working but when i refresh the page i get TypeError: Cannot read property 'Location' of undefined
- react-table not rendering data in the initial load and after page refresh
- React app compiles successfully and works but after reloading the page in the browser I get a TypeError var.filter is not a function
- React native Refresh works but next call still uses the last token
- Next JS npm start app load 404 page not found error for physical pages
- Reload the page gets 404 error using React Router
- The React App works during `npm start` but returns 404 after build
- React Flash Message: How to make the message show without refreshing the page but refresh on 200
- Fetch global data for the whole app in Next.js on initial page load
- React-Router's Link-To updates the URL but doesn't refresh page
- My javascript function works only after I hard refresh the page
- React router redirects the page but component doesn't get rendered
- React Router's v6 history.push('/') giving error of "undefined (reading 'pathname')" - url changes, but page stays the same
- ReactShallowRenderer render(): Shallow rendering works only with custom components, but the provided element type was `object`. Error
- React Router change the address but doesn't load the second page
- Trying to deploy my REACT Webpack app to heroku. Everything works locally and the heroku build works. But I'm getting a 404 nginx
- Azure webapplication return 404 when try to access using the address bar or refresh page
- I want to load Google Drive images from React, but I get a Cross-Origin Read Blocking (CORB) error
- React Router changes URL but doesn't update the page unless it was refresh from browser
- Why does data from my api only display once and when I refresh the page it gives an error
- When I first click the delete button, all the notes are disappeared but, when I refresh the page it works just fine
- AJAX > MongoDB query only works five times, then server stops handling requests, and I can't refresh the page
- Why react-router does not work in the server? It shows 404 error after refreshing the page
- How to get the HTTP request headers from initial page request in ReactJS
- React routings-url changes. but doesn't render components. when refresh the page it renders perfectly
More Query from same tag
- React Context API and avoiding re-renders
- Passing state after .setState() to child component but not showing up in this.props for child component
- react route how to import local scss file only apply to one js file?
- React this.state.addroom.map is not a function
- How to upgrade a React project built with create-react-app to the next create-react-app version?
- How can I update my redux state correctly?
- Why change State inside setTimeout make an infinity loop
- How can I reset a component to it's initial state in react
- How to get checkbox value using React
- React.js useState() add/update/delete
- Array of children passed as prop in react
- Unable to fetch data from local json file by axios
- How can I run an assertion test after a certain amount of simulated time using jest?
- React Port 8081
- Celsius to Fahrenheit Converter with React Hooks
- Access Signal R via React using aspnet/signalr
- Why is firestore where clause not working with state?
- React useContext Returning Undefined
- Browser page becomes unresponsive on sign in using firebase google login
- Why function inside function ReactJS?
- Property 'loginToken' does not exist on type '{ loginToken: string; } | { error: Error; } | { username: string; password: string; }'
- Can't simulate enzyme test click on a material ui Checkbox when nested in a redux-form Field tag
- Recompose + TypeScript - type error on additional props
- how to make api call from external file using axios and callbacks and pass param in react
- ReactJS - Hide a div with specific background image
- Calling a function inside another function in React
- How to create a mobile layout for a component in ReactJS?
- How to type a styled component without losing any prop with Typescript?
- Use same .env file for server and client (react) app
- What is the meaning of this sign { ${`expirydate`} } and how to use it