From 5fd88270bfd70b7d7aa2c8af4bb5c04d1df17d6b Mon Sep 17 00:00:00 2001 From: Benedikt Schwab Date: Thu, 4 Jul 2024 13:35:19 +0200 Subject: [PATCH] reenabled static export --- .github/workflows/build-website.yml | 2 +- next.config.js | 1 + package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-website.yml b/.github/workflows/build-website.yml index 3e6e420..aa98b5d 100644 --- a/.github/workflows/build-website.yml +++ b/.github/workflows/build-website.yml @@ -27,7 +27,7 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - name: Build site - run: pnpm build && pnpm export + run: pnpm build - name: Deploy to netlify uses: netlify/actions/cli@master env: diff --git a/next.config.js b/next.config.js index 7d48052..7d2c523 100644 --- a/next.config.js +++ b/next.config.js @@ -8,6 +8,7 @@ const withNextra = require('nextra')({ }) module.exports = withNextra({ + output: "export", reactStrictMode: true, images: { unoptimized: true diff --git a/package.json b/package.json index 983078d..d33bd4e 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "next dev", "build": "next build", - "clean": "shx rm -rf .next node_modules pnpm-lock.yaml", + "clean": "shx rm -rf .next node_modules pnpm-lock.yaml out", "start": "next start", "lint": "next lint", "export": "next export",