From 1230e8d9f3ee71c8c2fb56f6d9b57162c128b537 Mon Sep 17 00:00:00 2001 From: Jonathan Branan Date: Tue, 19 Nov 2024 14:21:02 -0600 Subject: [PATCH] test of standalone build --- .gitea/workflows/build.yml | 2 +- next.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 1c3b9bc..40244a9 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -44,7 +44,7 @@ jobs: - name: Lint run: yarn lint - name: Build app and export to ./out - run: EXPORT=1 UNOPTIMIZED=1 yarn build + run: EXPORT=0 UNOPTIMIZED=1 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 3a5ccb6..acabc84 100644 --- a/next.config.js +++ b/next.config.js @@ -54,7 +54,7 @@ const securityHeaders = [ }, ] -const output = process.env.EXPORT ? 'export' : undefined +const output = process.env.EXPORT ? 'export' : 'standalone' const basePath = process.env.BASE_PATH || undefined const unoptimized = process.env.UNOPTIMIZED ? true : undefined