From c70477207a90beed120f73eceac0f7ed4b4933b9 Mon Sep 17 00:00:00 2001 From: Michal Turcan Date: Mon, 3 Jul 2023 14:36:49 +0200 Subject: [PATCH] setup static export --- .github/workflows/frontend.yaml | 2 +- next.config.js | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/frontend.yaml b/.github/workflows/frontend.yaml index e8fa6af..8489fd3 100644 --- a/.github/workflows/frontend.yaml +++ b/.github/workflows/frontend.yaml @@ -34,5 +34,5 @@ jobs: apiToken: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }} accountId: 620ff29bbd515d2848f5306578bd1d1d projectName: alliance-dashboard - directory: .next + directory: out gitHubToken: ${{ secrets.TFL_GITHUB_TOKEN }} diff --git a/next.config.js b/next.config.js index e424b99..13da3e0 100644 --- a/next.config.js +++ b/next.config.js @@ -1,6 +1,13 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - images: { domains: ['gravedigger.backbonelabs.io', 'www.erisprotocol.com', 'raw.githubusercontent.com'] } -} + output: 'export', + images: { + domains: [ + 'gravedigger.backbonelabs.io', + 'www.erisprotocol.com', + 'raw.githubusercontent.com', + ], + }, +}; -module.exports = nextConfig +module.exports = nextConfig;