I’m just building a simple website and try to use github-pages.
But somehow I got:
Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'.
I’m not sure about that warning, and my website doesn’t show anything.
Here if you want to see it:
https://yoga1234.github.io/frontendmentor-challenges/
>Solution :
I took a look at your code on GitHub. I think the problem is with your React router. GitHub pages are deployed in a subdirectory by default. You need to adjust the basepath (homepage) in package.json accordingly. I change the path in my CI script, because i had the same problem a year ago:
- name: Adjust basename 🔪
uses: deef0000dragon1/json-edit-action/@v1
env:
KEY: homepage
VALUE: /frontendmentor-challenges/
FILE: package.json
Full example: https://github.com/foorschtbar/spa-crud-frontend/commit/a125d28d4c9f452c73aa6cae8a56cad3f3e6b262