Skip to content

Commit

Permalink
Changing configfiles to deploy to Github Pages (#2).
Browse files Browse the repository at this point in the history
  • Loading branch information
vstgio committed Jun 4, 2024
1 parent 2e0f085 commit ac19624
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
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
4 changes: 1 addition & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ const withNextra = require('nextra')({
})

module.exports = withNextra({
output: 'export',
i18n: {
locales: ['en', 'pt'],
defaultLocale: 'en'
},
images: {
unoptimized: true,
},
})

// If you have other Next.js configurations, you can pass them as the parameter:
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"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 ac19624

Please sign in to comment.