Hello, I have a problem with deploying my NextJS site.
I run a deploy, and I works totally fine and the site is live. Then I go to the site and get a “Page Not Found”-message.
When I download the build files it seems like it is just hosting all the files (within same folders) from Github. I have tried to go to the domain/pages/index.js and it works and I get the code.
The domain is https://u-reg-midtgard.netlify.app/
The build output:
8:06:33 PM: Executing user command: npm run build
8:06:34 PM: > br-reg-system@1.0.0 build /opt/build/repo
8:06:34 PM: > next build
8:06:34 PM: Browserslist: caniuse-lite is outdated. Please run next commandnpm update
8:06:34 PM: Warning: No build cache found. Please configure build caching for faster rebuilds. Read more: https://err.sh/next.js/no-cache
8:06:34 PM: Creating an optimized production build…
8:06:58 PM: Compiled successfully.
8:06:58 PM: Automatically optimizing pages…
8:07:00 PM: Page Size First Load JS
8:07:00 PM: ┌ ○ / 2.58 kB 233 kB
8:07:00 PM: ├ └ css/77c671b1533bce25839c.css 660 B
8:07:00 PM: ├ /_app 291 B 57.6 kB
8:07:00 PM: ├ ○ /404 2.58 kB 60.2 kB
8:07:00 PM: ├ ○ /registrer 8.07 kB 239 kB
8:07:00 PM: ├ └ css/d5b7fdd275e54fcbdfb4.css 692 B
8:07:00 PM: └ λ /sok 1.52 kB 232 kB
8:07:00 PM: └ css/ea6b46d0be8e614bce2f.css 676 B
8:07:00 PM: + First Load JS shared by all 57.6 kB
8:07:00 PM: ├ static/pages/_app.js 291 B
8:07:00 PM: ├ chunks/commons.db9b5a.js 10.5 kB
8:07:00 PM: ├ chunks/framework.8d738c.js 40.3 kB
8:07:00 PM: ├ runtime/main.e9b490.js 5.85 kB
8:07:00 PM: ├ runtime/webpack.b65cab.js 746 B
8:07:00 PM: └ css/498d61218e435377339b.css 239 B
8:07:00 PM: λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
8:07:00 PM: ○ (Static) automatically rendered as static HTML (uses no initial props)
8:07:00 PM: ● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
8:07:00 PM: Skipping functions preparation step: no functions directory set
8:07:00 PM: Caching artifacts
8:07:00 PM: Started saving node modules
8:07:00 PM: Finished saving node modules
8:07:00 PM: Started saving build plugins
8:07:00 PM: Finished saving build plugins
8:07:00 PM: Started saving pip cache
8:07:07 PM: Finished saving pip cache
8:07:07 PM: Started saving emacs cask dependencies
8:07:07 PM: Finished saving emacs cask dependencies
8:07:07 PM: Started saving maven dependencies
8:07:07 PM: Finished saving maven dependencies
8:07:07 PM: Started saving boot dependencies
8:07:07 PM: Finished saving boot dependencies
8:07:07 PM: Started saving go dependencies
8:07:07 PM: Finished saving go dependencies
8:07:10 PM: Creating deploy upload records
8:07:10 PM: Build script success
8:07:10 PM: Starting to deploy site from ‘.’
8:07:10 PM: Creating deploy tree
8:07:11 PM: Starting post processing
8:07:11 PM: 0 new files to upload
8:07:11 PM: 0 new functions to upload
8:07:11 PM: Post processing done
8:07:11 PM: Site is live
8:07:58 PM: Finished processing build request in 1m49.579972784s