Skip to content

Commit

Permalink
Change the output mode to work for export for static website
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpiontornado committed Jul 29, 2024
1 parent ade1cc3 commit 471efb4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
run: |
yarn install
yarn build
yarn export
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
7 changes: 1 addition & 6 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ const nextConfig = {
sassOptions: {
includePaths: [path.join(__dirname, "styles")],
},
// images: {
// // Not a permanent solution - from ChatGPT, trying to address images not loading
// // see: https://nextjs.org/docs/pages/api-reference/components/image#devicesizes
// deviceSizes: [640, 750, 828, 1080, 1200, 1920],
// imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
// },
output: "export",
};

module.exports = nextConfig;
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"build:digitalocean": "yarn install --production=false && yarn run build && rm -rf node_modules && yarn install --production --frozen-lockfile",
"start": "next start",
"lint": "npx eslint .",
"export": "next export",
"deploy": "gh-pages -d build"
},
"dependencies": {
Expand Down

0 comments on commit 471efb4

Please sign in to comment.