Skip to content

Commit

Permalink
updating next js
Browse files Browse the repository at this point in the history
  • Loading branch information
ManavSarkar committed Mar 8, 2024
1 parent e5f3a91 commit b501cae
Show file tree
Hide file tree
Showing 5 changed files with 1,205 additions and 479 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out/
path: ./output

# Deployment job
deploy:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# next.js
/.next/
/out/
/output/

# production
/build
Expand Down
4 changes: 4 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ import rehypePrism from '@mapbox/rehype-prism'
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
distDir: "output",
pageExtensions: ['js', 'jsx', 'mdx'],
reactStrictMode: true,
experimental: {
scrollRestoration: true,
},
images: {
unoptimized: true,
},
}

const withMDX = nextMDX({
Expand Down
Loading

0 comments on commit b501cae

Please sign in to comment.