Skip to content

Commit

Permalink
Changing configfiles to deploy to Github Pages (#1).
Browse files Browse the repository at this point in the history
  • Loading branch information
vstgio committed Jun 4, 2024
1 parent 3140bf0 commit 2e0f085
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
Binary file removed .DS_Store
Binary file not shown.
8 changes: 4 additions & 4 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
17 changes: 10 additions & 7 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */ })
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"export": "next build && touch out/.nojekyll",
"lint": "next lint"
},
"devDependencies": {
Expand Down

0 comments on commit 2e0f085

Please sign in to comment.