404: NOT_FOUND - Help ðŸ˜ðŸ˜
Answered
Least Grebe posted this in #help-forum
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):
jsconfig.json:
If you want any other code ples do let me know, im staring how my directory looks too
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 = nextConfigjsconfig.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!
14 Replies
Least GrebeOP
@Least Grebe 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):
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:
json
{
"compilerOptions": {
"paths": {
"@/*": ["./*"]
}
}
}
If you want any other code ples do let me know, im staring how my directory looks too
remove this:
and deploy again
const nextConfig = {
useFileSystemPublicRoutes: true, // Set to false if you want to disable the App Router
}and deploy again
@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
https://codesandbox.io/p/devbox/zn9d8l
@B33fb0n3 Can you confirm, that you files looking like this?
https://codesandbox.io/p/devbox/zn9d8l
Least GrebeOP
Yep, you can even check it out https://github.com/SiddDevZ/Portfolio
@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
https://codesandbox.io/p/github/SiddDevZ/Portfolio/main
@B33fb0n3 It looks like your website is working fine without the useFileSystemPublicRoutes?
https://codesandbox.io/p/github/SiddDevZ/Portfolio/main
Least GrebeOP
in this yeah, but i dont know why it still says NOT FOUND 404
@Least Grebe in this yeah, but i dont know why it still says NOT FOUND 404
how do you start your app?
@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