Skip to content

Commit

Permalink
Fix export to account for basePath (#1461)
Browse files Browse the repository at this point in the history
* fix builds

* update ci versions

* add production base path
  • Loading branch information
cb-jake authored Dec 10, 2024
1 parent 01a770d commit eda84de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
node-version: "20"
cache: yarn
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v4
with:
static_site_generator: next
- name: Install dependencies
run: yarn install
- name: Build and export with Next.js
run: yarn deploy
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: ./examples/testapp/out

Expand All @@ -47,4 +47,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions examples/testapp/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export default {
output: 'export',
basePath: process.env.NODE_ENV === 'production' ? '/coinbase-wallet-sdk' : undefined,
};

0 comments on commit eda84de

Please sign in to comment.