Next.js Discord

Discord Forum

404: NOT_FOUND - Help 😭😭

Answered
Least Grebe posted this in #help-forum
Open in Discord
Least GrebeOP
I recently migrated from react to next, it all works good on my local machine, but when i deploy on vercel it says not found, I have NO errors,

my next config (next.config.js):
/** @type {import('next').NextConfig} */
const nextConfig = {
  useFileSystemPublicRoutes: true, // Set to false if you want to disable the App Router
}

module.exports = nextConfig


jsconfig.json:
{
  "compilerOptions": {
    "paths": {
      "@/*": ["./*"]
    }
  }
}


If you want any other code ples do let me know, im staring how my directory looks too
Answered by Least Grebe
just had to change a setting inside vercel, now its fixed, thank you and my bad!
View full answer

14 Replies

Least GrebeOP
@B33fb0n3 remove this: const nextConfig = { useFileSystemPublicRoutes: true, // Set to false if you want to disable the App Router } and deploy again
Least GrebeOP
then it would say this tho
@Least Grebe then it would say this tho
Can you confirm, that you files looking like this?
https://codesandbox.io/p/devbox/zn9d8l
@Least Grebe Yep, you can even check it out https://github.com/SiddDevZ/Portfolio
It looks like your website is working fine without the useFileSystemPublicRoutes?
https://codesandbox.io/p/github/SiddDevZ/Portfolio/main
@B33fb0n3 how do you start your app?
Least GrebeOP
in vercel
ohh wait
i think it does not know that it isn't a react app anymore
since i actually just commited inside the same repo
@B33fb0n3 how do you start your app?
Least GrebeOP
just had to change a setting inside vercel, now its fixed, thank you and my bad!
Answer