diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 2e3eac6..c5e7607 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -56,14 +56,6 @@ jobs: with: node-version: "20" cache: ${{ steps.detect-package-manager.outputs.manager }} - - name: Setup Pages - uses: actions/configure-pages@v5 - with: - # Automatically inject basePath in your Next.js configuration file and disable - # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). - # - # You may remove this line if you want to manage the configuration yourself. - static_site_generator: next - name: Restore cache uses: actions/cache@v4 with: diff --git a/next.config.mjs b/next.config.mjs index 6828888..71dcc3f 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -23,19 +23,21 @@ const nextConfig = async (phase, { defaultConfig }) => { }; switch (phase) { - case PHASE_DEVELOPMENT_SERVER: + case PHASE_PRODUCTION_BUILD: /** @type {import('next').NextConfig} */ - const devConfig = { + const prodConfig = { ...sharedConfig, + unoptimized: true, }; - return devConfig; + return prodConfig; + case PHASE_DEVELOPMENT_SERVER: default: /** @type {import('next').NextConfig} */ - const prodConfig = { + const devConfig = { ...sharedConfig, }; - return prodConfig; + return devConfig; } -}; +} export default nextConfig;