Next.js Discord

Discord Forum

basePath not working when the application is deployed via firebase hosting.

American black bear posted this in #help-forum
Open in Discord
American black bearOP
Hi all, I am using firebase to host my NextJS application. When I set a basePath in next config, it is working fine locally. But when I deploy to firebase it is not working, the firebase is throwing 404 error page not found in all path.

here is my firebase.json file setting
  "hosting": {
    "source": ".",
    "ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
    "frameworksBackend": {
      "region": "us-east1"

my basePath is /admin? Am i doing something wrong in the firebase.json?

0 Replies