Skip to content

Commit

Permalink
fix builds (#4)
Browse files Browse the repository at this point in the history
* fix builds

* fix builds
  • Loading branch information
munyanezaarmel authored Nov 13, 2024
1 parent ca8798f commit a4a481a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: .next
path: out

# Deployment job
deploy:
Expand Down
10 changes: 9 additions & 1 deletion next.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import type { NextConfig } from "next"

const nextConfig: NextConfig = {
/* config options here */
assetPrefix:
process.env.NODE_ENV === "production" ? "/digitalization-support-hub" : "",
basePath:
process.env.NODE_ENV === "production" ? "/digitalization-support-hub" : "",
output: "export",
trailingSlash: true,
images: {
unoptimized: true,
},
}

export default nextConfig

0 comments on commit a4a481a

Please sign in to comment.