Skip to content

Commit

Permalink
Update Next.js configuration to set output mode and adjust image hand…
Browse files Browse the repository at this point in the history
…ling for GitHub Pages compatibility
  • Loading branch information
tonguip committed Feb 3, 2025
1 parent 1ba6325 commit e5ecb76
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@ import createNextIntlPlugin from 'next-intl/plugin';
const withNextIntl = createNextIntlPlugin();
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
images: {
domains: ['cosi.bu.ac.th', 'github.com', 'www.countryflags.com'],
},
eslint: {
ignoreDuringBuilds: true, // Allows build to complete even if ESLint errors exist
},
experimental: {
outputStandalone: true, // Ensures correct output for static exports
images: {
unoptimized: true, // Required since GitHub Pages doesn't support Next.js image optimization
},
// experimental: {
// outputStandalone: true, // Ensures correct output for static exports
// },
};

export default withNextIntl(nextConfig);

0 comments on commit e5ecb76

Please sign in to comment.