diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index f96fa65..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 427b903..236f901 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -73,10 +73,10 @@ jobs: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- - 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 - # - name: Static HTML export with Next.js - # run: ${{ steps.detect-package-manager.outputs.runner }} next export + # - name: Build with Next.js + # run: ${{ steps.detect-package-manager.outputs.runner }} next build + - name: Static HTML export with Next.js + run: ${{ steps.detect-package-manager.outputs.runner }} next export - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: diff --git a/next.config.js b/next.config.js index 75b6e95..600d58f 100644 --- a/next.config.js +++ b/next.config.js @@ -2,13 +2,16 @@ const withNextra = require('nextra')({ theme: './theme.tsx', themeConfig: './theme.config.jsx' }) - + module.exports = withNextra({ - i18n: { - locales: ['en', 'pt'], - defaultLocale: 'en' - } - }) - + i18n: { + locales: ['en', 'pt'], + defaultLocale: 'en' + }, + images: { + unoptimized: true, + }, +}) + // If you have other Next.js configurations, you can pass them as the parameter: // module.exports = withNextra({ /* other next.js config */ }) \ No newline at end of file diff --git a/package.json b/package.json index 8c48906..f8a71c2 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "dev": "next dev", "build": "next build", "start": "next start", + "export": "next build && touch out/.nojekyll", "lint": "next lint" }, "devDependencies": {