Skip to content

Commit a62081b

Browse files
authored
Merge pull request #8 from TorresjDev/fullstack-dev
debugging for github pages
2 parents 8efeb98 + a438f1d commit a62081b

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

β€Ž.github/workflows/nextjs.ymlβ€Ž

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ jobs:
5353
with:
5454
node-version: "20"
5555
cache: ${{ steps.detect-package-manager.outputs.manager }}
56+
- name: Install dependencies
57+
run: npm install
58+
59+
- name: Build Next.js
60+
run: npm run build && npm run export
61+
62+
- name: Upload artifact
63+
uses: actions/upload-pages-artifact@v3
64+
with:
65+
path: ./out
5666
- name: Setup Pages
5767
uses: actions/configure-pages@v5
5868
with:
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { withSentryConfig } from "@sentry/nextjs";
22
/** @type {import('next').NextConfig} */
3-
const nextConfig = {};
3+
const nextConfig = { output: "export",
4+
basePath: "/Nextjs-Portfoio", // Replace with your repository name
5+
assetPrefix: "/Nextjs-Portfoio",};
46

57
export default withSentryConfig(
68
nextConfig,

0 commit comments

Comments
Β (0)