Skip to content

Commit

Permalink
Fix(Website): Fixed next deployment error
Browse files Browse the repository at this point in the history
  • Loading branch information
SaptarshiSarkar12 committed Jul 9, 2023
1 parent 975affd commit 7eae984
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ jobs:
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
- name: Static HTML export with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next export
run: BASE_PATH="/Drifty" ${{ steps.detect-package-manager.outputs.runner }} next build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion Website/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
basePath: "/Drifty",
basePath: process.env.BASE_PATH,
output: 'export',
images: {
minimumCacheTTL: 60 * 60 * 24,
Expand Down

1 comment on commit 7eae984

@vercel
Copy link

@vercel vercel bot commented on 7eae984 Jul 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.