diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 40244a9..dd8ef2f 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -6,16 +6,16 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Send message job is starting - uses: cstuder/apprise-ga@master - with: - title: 'jonb.io site deployment' - message: >- - Started build for: - Commit by {{ head_commit.author.name }}: {{ head_commit.message | - truncate(128) }} ({{ head_commit.id[0:7] }}) - env: - APPRISE_URL: '${{ secrets.APPRISE_URL }}' + # - name: Send message job is starting + # uses: cstuder/apprise-ga@master + # with: + # title: 'jonb.io site deployment' + # message: >- + # Started build for: + # Commit by {{ head_commit.author.name }}: {{ head_commit.message | + # truncate(128) }} ({{ head_commit.id[0:7] }}) + # env: + # APPRISE_URL: '${{ secrets.APPRISE_URL }}' - name: Checkout main uses: actions/checkout@v4 - name: Install Yarn @@ -34,8 +34,7 @@ jobs: with: path: | ${{ steps.yarn-cache-dir-path.outputs.dir }} - ${{ github.workspace }}/.next/cache - ${{ github.workspace }}/.yarn/cache + ${{ github.workspace }}/.next/ key: '${{ runner.os }}-yarn-${{ hashFiles(''**/yarn.lock'') }}' restore-keys: | ${{ runner.os }}-yarn- @@ -44,7 +43,7 @@ jobs: - name: Lint run: yarn lint - name: Build app and export to ./out - run: EXPORT=0 UNOPTIMIZED=1 yarn build + run: yarn build - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub diff --git a/next.config.js b/next.config.js index acabc84..3a5ccb6 100644 --- a/next.config.js +++ b/next.config.js @@ -54,7 +54,7 @@ const securityHeaders = [ }, ] -const output = process.env.EXPORT ? 'export' : 'standalone' +const output = process.env.EXPORT ? 'export' : undefined const basePath = process.env.BASE_PATH || undefined const unoptimized = process.env.UNOPTIMIZED ? true : undefined