score:0
Try deleting index.html file. I have created a website in that I deleted the index.html from public folder and instead used index.js in functions folder.
score:0
I had the same problem as you. Using the following configuration made the files in my public folder (including the sitemap) accessible online after deployment:
"rewrites": [
{
"source": "/",
"destination": "/index.html"
},
{
"source": "/sitemap",
"destination": "/sitemap.xml"
}
]
score:2
This worked for me:
"redirects": [
{
"source": "/sitemap",
"destination": "/sitemap.xml",
"type": 301
},
{
"source": "/sitemap/**",
"destination": "/sitemap.xml",
"type": 302
}
]
Source: stackoverflow.com
Related Query
- How to use sitemap in firebase hosting with react app
- How do I use the Firebase onAuthStateChange with the new React Hooks?
- how to use .env.qa or .env.staging with create react app
- How to use Turborepo for an existing react app created with Create React App in order to make it a monorepo?
- How to use HTML with JS in React app to export component
- Absolute paths for React app on Github CI with Firebase hosting
- How to use firebase emulators in a react web app
- How do I implement Express.js with a React app that was made using npm create-react-app since I won't be able to use app.listen?
- React app not working with firebase hosting
- How do I use Redux Toolkit with multiple React App instances?
- How to use react-router-dom when react app resides on a path with structure: domain.com/a-path/page.php?page=param
- How do I use a Consumer in a React app with TypeScript?
- How can i use cloud function with app in Firebase
- How to use static js generated throught webpack for react app with es6
- How to use code splitting with webpack in react app with components exported as export * from '...'
- How to use visualforce page with lightning:container React in Lightning app builder?
- How to use Segment's Visual Tagger with a React app in localhost
- How to use Stripe with React and Firebase
- How to use refs in React with Typescript
- How to use callback with useState hook in react
- How to use children with React Stateless Functional Component in TypeScript?
- How to use throttle or debounce with React Hook?
- How to use React Router with Electron?
- How to use Redux's Provider with React
- How to use jQuery UI with React JS
- How to use shouldComponentUpdate with React Hooks?
- How to use React useRef hook with typescript?
- How to use create-react-app with an older React version?
- How to use React Router with Laravel?
- How to generate sitemap with react router
More Query from same tag
- react-bootstrap-table-2 sortFunc is never called
- can“t set date in input type date
- How to set the image on top of the div as constant
- Passing parameters to dynamically generated react routes
- How can I use SVG code as a source for <img src={...} /> element?
- Render not being called after state gets updated
- React memory leak warning in useEffect
- Retrieve firebase collection based on uid in React.js
- React Convert Hooks To Class But Get Error
- How to listen or get json in React app from another app making a POST localhost?
- React slow with multiple controlled text inputs
- How to use Axios with async/await syntax in react?
- a Textfiled does not use functions on props
- How to handle oidc silent renew error
- Warning: flattenChildren(...): Encountered two children with the same key in reactjs
- navigating to another component in the same page layout
- Styled component input loses focus onChange
- ReactJS property timerID does not exist on type Clock
- Getting empty string from HTML input event in Firefox
- Display value of returned var into render react native
- How to deploy browserHistory based React applications to Azure App Service?
- Please help, I can't get my reset button to work- React js
- Trying to access data in the movies file and use it in the home file
- How do I get the full Quill Api?
- Prevent infinite loop when updating state via React useEffect Hook
- With Redux-Form, how to dispatch from a ReduxFormField onChange event?
- React/javascript component to send data back to aspx
- redux-persist: How to save state on browser's local storage?
- Component files not importing in webpack react project?
- Props undefined inside the return but otherwise defined