From 471efb411d402274e6719708be87d69fe4bd6864 Mon Sep 17 00:00:00 2001 From: Nicholas Langford <40455550+scorpiontornado@users.noreply.github.com> Date: Mon, 29 Jul 2024 22:27:06 +1000 Subject: [PATCH] Change the output mode to work for export for static website --- .github/workflows/deploy.yml | 1 - next.config.js | 7 +------ package.json | 1 - 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5e24f22..3008c00 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,7 +22,6 @@ jobs: run: | yarn install yarn build - yarn export - name: Deploy uses: peaceiris/actions-gh-pages@v3 diff --git a/next.config.js b/next.config.js index c9eaccf..a98de06 100644 --- a/next.config.js +++ b/next.config.js @@ -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; diff --git a/package.json b/package.json index 3f8bafc..8ec0aca 100644 --- a/package.json +++ b/package.json @@ -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": {