Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apologies, this pull request was submitted by mistake. Please disregard it. #661

Prev Previous commit
Next Next commit
fix duplicate key
  • Loading branch information
dodolia907 committed Dec 1, 2024
commit 4c1e42272cb8095e139cec63fbe303316c5ae5cd
11 changes: 3 additions & 8 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export default withBundleAnalyzer({
],
formats: ['image/avif', 'image/webp'],
dangerouslyAllowSVG: true,
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;"
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
unoptimized: true // 画像の最適化を無効にする
},

webpack: (config, _context) => {
Expand All @@ -35,11 +36,5 @@ export default withBundleAnalyzer({
return config
},

transpilePackages: ['react-tweet'],

// 静的エクスポートを有効にする設定
output: 'export',
images: {
unoptimized: true // 画像の最適化を無効にする
}
transpilePackages: ['react-tweet']
})