Skip to content

Commit

Permalink
Update build command
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaloszer committed Nov 3, 2024
1 parent f50f30f commit 2ea8079
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,15 @@ jobs:
with:
static_site_generator: next

- name: Build with Next.js
run: bun run build
- name: Build with Next.js/Bun
run: bun build
env:
GITHUB_PAGES: true

- name: Verbose folder structure
run: ls -R

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: out
path: ./out

deploy:
environment:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "next dev",
"build": "rm -rf out && next build",
"build": "bun build ./app/page.tsx --outdir ./out",
"start": "next start",
"lint": "next lint"
},
Expand Down
24 changes: 19 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"compilerOptions": {
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -18,9 +22,19 @@
}
],
"paths": {
"@/*": ["./*"]
"@/*": [
"./*"
]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"out/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}

0 comments on commit 2ea8079

Please sign in to comment.