Skip to content

Commit

Permalink
fix: add necessary cloudflare deploy config
Browse files Browse the repository at this point in the history
mostly copied from w3admin
  • Loading branch information
travis committed Oct 9, 2023
1 parent e116cf7 commit 07047e2
Show file tree
Hide file tree
Showing 3 changed files with 2,232 additions and 80 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/pnpm
- run: pnpm build
- run: pnpm pages:build
env:
NEXT_PUBLIC_SERVICE_DID: 'did:web:staging.web3.storage'
NEXT_PUBLIC_SERVICE_URL: 'https://staging.up.web3.storage'
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/pnpm
- run: pnpm build
- run: pnpm pages:build
env:
NEXT_PUBLIC_SERVICE_DID: 'did:web:web3.storage'
NEXT_PUBLIC_SERVICE_URL: 'https://up.web3.storage'
Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"build": "next build",
"start": "next start",
"test": "pnpm lint",
"lint": "next lint"
"lint": "next lint",
"pages:build": "pnpm dlx @cloudflare/next-on-pages@1",
"pages:watch": "pnpm @cloudflare/next-on-pages@1 --watch",
"pages:dev": "pnpm wrangler pages dev .vercel/output/static --compatibility-flag=nodejs_compat"
},
"dependencies": {
"@headlessui/react": "^1.7.17",
Expand All @@ -22,14 +25,17 @@
"react-dom": "latest"
},
"devDependencies": {
"@cloudflare/next-on-pages": "^1.6.3",
"@types/node": "latest",
"@types/react": "latest",
"@types/react-dom": "latest",
"autoprefixer": "latest",
"eslint": "latest",
"eslint-config-next": "latest",
"eslint-plugin-next-on-pages": "^1.6.3",
"postcss": "latest",
"tailwindcss": "latest",
"typescript": "latest"
"typescript": "latest",
"wrangler": "^3.11.0"
}
}
Loading

0 comments on commit 07047e2

Please sign in to comment.