Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT committed Feb 20, 2024
1 parent 409d5d5 commit 43adf79
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ const isProd = process.env.NODE_ENV === 'production' && !process.env.IS_PREVIEW;

/** @type {import('next').NextConfig} */
const nextConfig = {
headers: [
{
source: '/_next/static/([^/]+/pages|chunks|runtime|css|fonts|media)/(.+)',
headers: [{key: 'Access-Control-Allow-Origin', value: '*'}],
},
],
headers() {
return [
{
source: '/_next/static/([^/]+/pages|chunks|runtime|css|fonts|media)/(.+)',
headers: [{key: 'Access-Control-Allow-Origin', value: '*'}],
},
];
},
publicRuntimeConfig: {
assetPrefix: isProd ? 'https://docs.sentry.io' : undefined,
},
Expand Down

0 comments on commit 43adf79

Please sign in to comment.