next.config.ts 440 B

12345678910111213141516171819202122
  1. import { withSentryConfig } from "@sentry/nextjs";
  2. import type { NextConfig } from "next";
  3. const nextConfig: NextConfig = {
  4. output: "standalone",
  5. images: {
  6. remotePatterns: [
  7. {
  8. protocol: "https",
  9. hostname: "image.tmdb.org",
  10. pathname: "/t/p/**",
  11. },
  12. ],
  13. },
  14. };
  15. export default withSentryConfig(nextConfig, {
  16. silent: true,
  17. sourcemaps: {
  18. disable: !process.env.SENTRY_AUTH_TOKEN,
  19. },
  20. });