-
SummaryI have a Next.js 15 application that builds successfully on AWS Amplify but returns a 404 error when accessing the deployed site. The build completes without errors, but the homepage and other routes are not accessible. Project Structure
Build Configuration
version: 1
applications:
- frontend:
phases:
preBuild:
commands:
- npm install -g pnpm
- pnpm install
build:
commands:
- pnpm run build
- pwd
- ls -la
artifacts:
baseDirectory: .next
files:
- "**/*"
cache:
paths:
- node_modules/**/*
appRoot: frontend/feedal/apps/web
import { withSentryConfig } from "@sentry/nextjs";
import type { NextConfig } from "next";
const apiHost = process.env.NEXT_PUBLIC_API_HOST;
const nextConfig: NextConfig = {
// Your existing Next.js configuration
transpilePackages: ["@workspace/ui"],
output: "standalone",
images: {
remotePatterns: [
new URL(`${apiHost}/**`),
],
},
};
// Make sure adding Sentry options is the last code to run before exporting
export default withSentryConfig(nextConfig, {
org: "org",
project: "org-frontend",
// Only print logs for uploading source maps in CI
silent: !process.env.CI,
// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,
// Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
tunnelRoute: "/monitoring",
// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
// Enables automatic instrumentation of Vercel Cron Monitors.
automaticVercelMonitors: true,
});
I output of
When built locally, the hierarchy of the What I've Tried
Build OutputThe build shows successful compilation:
Environment Details
Questions
Additional Context
Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Answered by
Netail
Sep 5, 2025
Replies: 1 comment
-
Turbopack has been moved to; https://github.com/vercel/next.js |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
anthonyshew
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Turbopack has been moved to; https://github.com/vercel/next.js