From 67f5a3ee273884467dee2962437ff67ee1c407ea Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Thu, 2 Jan 2025 21:18:17 +0700 Subject: [PATCH] fix: CORS --- next.config.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/next.config.js b/next.config.js index 7c549ae..6c341a1 100644 --- a/next.config.js +++ b/next.config.js @@ -1,16 +1,5 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; - -module.exports = nextConfig; - -// Injected content via Sentry wizard below - -const { withSentryConfig } = require("@sentry/nextjs"); - -module.exports = withSentryConfig(module.exports, { - // For all available options, see: - // https://github.com/getsentry/sentry-webpack-plugin#options - +const nextConfig = { headers: async () => { return [ { @@ -28,6 +17,17 @@ module.exports = withSentryConfig(module.exports, { }, ]; }, +}; + +module.exports = nextConfig; + +// Injected content via Sentry wizard below + +const { withSentryConfig } = require("@sentry/nextjs"); + +module.exports = withSentryConfig(module.exports, { + // For all available options, see: + // https://github.com/getsentry/sentry-webpack-plugin#options // Suppresses source map uploading logs during build silent: true,