Skip to content
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,32 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20'
cache: 'npm'

- name: System information
run: |
free -h
df -h
node --version
npm --version

- name: Install dependencies
run: npm ci
run: |
npm cache clean --force
npm ci --prefer-offline --no-audit --maxsockets 1

- name: Build
run: npm run build
run: |
# Clear any cached data
rm -rf .next
# Run build with increased heap size and additional flags
NEXT_TELEMETRY_DISABLED=1 node --trace-deprecation --max-old-space-size=8192 node_modules/.bin/next build
env:
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }}
NODE_OPTIONS: "--max_old_space_size=8192 --no-warnings --expose-gc"
NEXT_TELEMETRY_DISABLED: "1"
NPM_CONFIG_PRODUCTION: "false"
NODE_ENV: "production"
CI: "true"
NEXT_TURBO: "1"
8 changes: 8 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
optimizePackageImports: ['@lit-protocol/lit-node-client', '@requestnetwork/lit-protocol-cipher'],
},
}

module.exports = nextConfig
Loading
Loading