Skip to content

Commit

Permalink
ci: generate static files by force export to out/ dir
Browse files Browse the repository at this point in the history
  • Loading branch information
longwind48 committed Dec 15, 2024
1 parent a0ce3c7 commit 8f8e115
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/firebase-hosting-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ jobs:
cd frontend
npm ci
npm run build
ls -la
echo "Checking build output directory:"
ls -la out/
- name: Debug directory structure
run: |
pwd
ls -la frontend/
ls -la frontend/.next/
ls -la frontend/out/
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion frontend/firebase.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"hosting": {
"target": "staging",
"public": ".next",
"public": "out",
"ignore": [
"firebase.json",
"**/.*",
Expand Down
2 changes: 1 addition & 1 deletion frontend/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
// output: 'export',
output: 'export',
env: {
APP_ENV: process.env.APP_ENV || 'development',
},
Expand Down

0 comments on commit 8f8e115

Please sign in to comment.