Skip to content

Commit

Permalink
Add static export in nextconfig (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
RajatRajdeep authored Jan 7, 2025
1 parent 69c16b1 commit c5c5c59
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +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
${{ steps.detect-package-manager.outputs.runner }} next export
run: ${{ steps.detect-package-manager.outputs.runner }} next build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions data/conference.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export const KEY_LINKS = {
sponsorshipProspectusLabel: 'SPONSORSHIP PROSPECTUS',
sponsorshipProspectusUrl:
'https://drive.google.com/file/d/15gfdVu8FyVP9-zohx_y56jmW1v-2DUid/view?usp=sharing',
konfHubEventPageLabel: 'KonfHub event page',
konfHubEventPage: 'https://konfhub.com/pyconf-hyderabad-2025'
konfHubEventPageLabel: 'KonfHub event page',
konfHubEventPage: 'https://konfhub.com/pyconf-hyderabad-2025',
};

export const SOCIALS = [
Expand Down
5 changes: 4 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ import createMDX from '@next/mdx';

/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
// Configure `pageExtensions` to include markdown and MDX files
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
};

const withMDX = createMDX({});
const withMDX = createMDX({
extension: /\.mdx?$/, // Include .mdx files
});

// Merge MDX config with Next.js config
export default withMDX(nextConfig);

0 comments on commit c5c5c59

Please sign in to comment.