Closed CaioCintra closed 1 year ago
I was so wrong, Okay let me look into this, idk why the build isn't seeing the redirects
Okay I changed a setting that might fix it, rebuilding now
okay so the build is being weird.
This old builds before I pointed to the right folder:
Now they at least see the redircts:
But yours isn;t listed and I am not sure why
oh ha. It's cause we have two redirect files.....
Can you delete the one inside the root of the repo and then add your changes to the one inside /public
https://github.com/devedmonton/DES-Website/blob/main/public/_redirects
Ok haha, now it makes more sense
Excuse me build, it is literally right there:
The other one works and is the same thing, why it's not working??
hmmmm and on your local if you do localhost:3000/bylaws it works right?
In my localhost both does not work actually
what commands are you running? to build?
npm run build
what happens when you run npm build generate
Doesn't work, then suggests the npm run build command
or maybe npm run start
or npx serve
These people seem to be having simiilar issue: https://answers.netlify.com/t/page-not-found-only-when-visiting-directly-with-the-url/94491/16
npm run start may work but it says i'm already using port 3000 but I closed everything, I will check that and see if runs normally
Ok, now it's working but not the redirects
hahaha omg @DerrykBoyd I think I need help.
I fixed it so that netlify does see the redirects and it does list them but it still thinks the page is missing, and I have googled everything I can think of. Any ideas?
hahaha omg @DerrykBoyd I think I need help.
I fixed it so that netlify does see the redirects and it does list them but it still thinks the page is missing, and I have googled everything I can think of. Any ideas?
I'm not sure why it's trying to prerender bylaws. Doesn't do that when I run generate locally. Anyhow... try adding this to the nuxt config, then hopefully it won't prerender that route and build will pass?
// nitro settings
nitro: {
prerender: {
ignore: ["/bylaws"],
},
},
That works!! 🥳 🥳 🥳 🎉 🎉 🎉
Thank you @DerrykBoyd
@CaioCintra add that to this pr and then you should be good!
Oh perfect! Thank you @CaioCintra for working through this!
I created the bylaws file according to the docs linked on the footer and changed redirects
What issue is this referencing?
Fixes issue #136
Does the following command run without warnings or errors?
npm run pr-checks
Have you taken a look at our contributing guidelines?
My node version matches the one suggested when running
nvm use
?