Skip to content

Commit

Permalink
next build && next export
Browse files Browse the repository at this point in the history
  • Loading branch information
zobkazi committed Nov 20, 2024
1 parent 68240aa commit 56c2b2d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
run: ${{ steps.detect-package-manager.outputs.runner }} next build && next export
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
14 changes: 13 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@ import createNextIntlPlugin from 'next-intl/plugin';
const withNextIntl = createNextIntlPlugin();

/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
output: 'export',
basePath: process.env.BASE_PATH || '',
reactStrictMode: true,
images: {
domains: ['images.unsplash.com'],
},

i18n: {
locales: ['en', 'bn'],
defaultLocale: 'en',
},
};

export default withNextIntl(nextConfig);

0 comments on commit 56c2b2d

Please sign in to comment.