Hi everyone I currently am having an issue when I refresh my flutter webapp and it says
“This file does not exist and there was no index.html found in the current directory or 404.html in the root directory.
Why am I seeing this?
You may have deployed the wrong directory for your application. Check your firebase.json and make sure the public directory is pointing to a directory that contains an index.html file.
You can also add a 404.html in the root of your site to replace this page with a custom error page.”
I will add the JSON I currently use. I would love help with any reasons why it doesnt work and I can share screenshots or the github repo too plus the HTML
I have been using chat gpt to help remake the code and nothing works. I dont know if its something else or my JSON code
{
"hosting": {
"source": ".",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"frameworksBackend": {
"region": "us-central1"
}
},
"functions": [
{
"source": "functions",
"codebase": "default",
"ignore": [
"node_modules",
".git",
"firebase-debug.log",
"firebase-debug.*.log",
"*.local"
],
"predeploy": [
"npm --prefix "$RESOURCE_DIR" run lint"
]
}
]
}
Dylan Wain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.