CollActionteam / collaction_cms

This is the UI interface for the CMS API
6 stars 3 forks source link

Routes are not working when the app is deployed to firebase #22

Closed dromerolovo closed 1 year ago

dromerolovo commented 1 year ago

When adding the specific route to the base url collaction-development.web.app like collaction-development.web.app/verification a "Page not found" display is returned.

Xazin commented 1 year ago

See this @dromerolovo https://docs.flutter.dev/development/ui/navigation/url-strategies

dromerolovo commented 1 year ago

I'll take a look tomorrow

dromerolovo commented 1 year ago

Fixed by adding

"rewrites": [ { "source": "**", "destination": "/index.html" } ] into firebase.json

And also adding the following line into github workflow, after flutter web build

- run: cp build/web/index.html build/web/404.html