From a4c022f551dd238321f82393ebc526657b50eea4 Mon Sep 17 00:00:00 2001 From: MurakawaTakuya Date: Wed, 6 Nov 2024 13:28:55 +0900 Subject: [PATCH] =?UTF-8?q?build=E3=81=AE=E5=87=BA=E5=8A=9B=E5=85=88?= =?UTF-8?q?=E3=82=92=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/firebase-hosting-merge.yml | 3 ++- firebase.json | 8 ++------ next.config.ts | 2 +- package.json | 3 ++- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index 1cca48a..8262a8a 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -11,7 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: npm ci && npm run build + - run: npm ci + - run: npm run build && npm run export - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: ${{ secrets.GITHUB_TOKEN }} diff --git a/firebase.json b/firebase.json index 20d073a..f98a80b 100644 --- a/firebase.json +++ b/firebase.json @@ -21,12 +21,8 @@ } ], "hosting": { - "public": "public", - "ignore": [ - "firebase.json", - "**/.*", - "**/node_modules/**" - ] + "public": "out", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"] }, "storage": { "rules": "storage.rules" diff --git a/next.config.ts b/next.config.ts index e9ffa30..65c102b 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,7 +1,7 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - /* config options here */ + output: "export", }; export default nextConfig; diff --git a/package.json b/package.json index 87d6edc..31f1d3a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "export": "next export" }, "dependencies": { "firebase": "^11.0.1",