Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: vercel build path #3

Merged
merged 3 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/vercel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

environment:
name: ${{ github.ref_name == 'main' && 'Production' || 'Preview' }}
url: ${{ github.ref_name == 'main' && 'https://runes-api.vercel.app/' || 'https://runes-api-pbcblockstack-blockstack.vercel.app/' }}
url: ${{ github.ref_name == 'main' && 'https://runes-api.vercel.app/' || 'https://runehook-pbcblockstack-hirosystems.vercel.app/' }}

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
run: vercel pull --yes --environment=${{ github.ref_name == 'main' && 'production' || 'preview' }} --token=${{ secrets.VERCEL_TOKEN }}

- name: Build project artifacts
run: vercel build ${{ github.ref_name == 'main' && '--prod' || '' }} --token=${{ secrets.VERCEL_TOKEN }}
run: vercel build ${{ github.ref_name == 'main' && '--prod' || '' }} --token=${{ secrets.VERCEL_TOKEN }} --cwd=./

- name: Deploy project artifacts to Vercel
id: deploy
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
Runehook.toml
.DS_Store
4 changes: 2 additions & 2 deletions api/src/api/routes/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
{
schema: {
operationId: 'getAddressBalances',
summary: 'Get address balances',
summary: 'Address balances',

Check warning on line 22 in api/src/api/routes/addresses.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/addresses.ts#L22

Added line #L22 was not covered by tests
description: 'Retrieves a paginated list of address balances',
tags: ['Runes'],
tags: ['Balances'],

Check warning on line 24 in api/src/api/routes/addresses.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/addresses.ts#L24

Added line #L24 was not covered by tests
params: Type.Object({
address: AddressSchema,
}),
Expand Down
4 changes: 2 additions & 2 deletions api/src/api/routes/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
{
schema: {
operationId: 'getBlockActivity',
summary: 'Get block activity',
summary: 'Block activity',

Check warning on line 22 in api/src/api/routes/blocks.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/blocks.ts#L22

Added line #L22 was not covered by tests
description: 'Retrieves a paginated list of rune activity for a block',
tags: ['Runes'],
tags: ['Activities'],

Check warning on line 24 in api/src/api/routes/blocks.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/blocks.ts#L24

Added line #L24 was not covered by tests
params: Type.Object({
block: BlockSchema,
}),
Expand Down
18 changes: 9 additions & 9 deletions api/src/api/routes/etchings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
{
schema: {
operationId: 'getEtchings',
summary: 'Get rune etchings',
summary: 'Rune etchings',

Check warning on line 32 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L32

Added line #L32 was not covered by tests
description: 'Retrieves a paginated list of rune etchings',
tags: ['Runes'],
tags: ['Etchings'],

Check warning on line 34 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L34

Added line #L34 was not covered by tests
querystring: Type.Object({
offset: Optional(OffsetSchema),
limit: Optional(LimitSchema),
Expand Down Expand Up @@ -61,7 +61,7 @@
operationId: 'getEtching',
summary: 'Rune etching',
description: 'Retrieves information for a Rune etching',
tags: ['Runes'],
tags: ['Etchings'],

Check warning on line 64 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L64

Added line #L64 was not covered by tests
params: Type.Object({
etching: RuneSchema,
}),
Expand All @@ -86,9 +86,9 @@
{
schema: {
operationId: 'getRuneActivity',
summary: 'Rune rune activity',
summary: 'Rune activity',

Check warning on line 89 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L89

Added line #L89 was not covered by tests
description: 'Retrieves all activity for a Rune',
tags: ['Runes'],
tags: ['Activities'],

Check warning on line 91 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L91

Added line #L91 was not covered by tests
params: Type.Object({
etching: RuneSchema,
}),
Expand Down Expand Up @@ -119,9 +119,9 @@
{
schema: {
operationId: 'getRuneAddressActivity',
summary: 'Rune rune activity for address',
summary: 'Rune activity for address',

Check warning on line 122 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L122

Added line #L122 was not covered by tests
description: 'Retrieves all activity for a Rune address',
tags: ['Runes'],
tags: ['Activities'],

Check warning on line 124 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L124

Added line #L124 was not covered by tests
params: Type.Object({
etching: RuneSchema,
address: AddressSchema,
Expand Down Expand Up @@ -160,7 +160,7 @@
operationId: 'getRuneHolders',
summary: 'Rune holders',
description: 'Retrieves a paginated list of holders for a Rune',
tags: ['Runes'],
tags: ['Balances'],

Check warning on line 163 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L163

Added line #L163 was not covered by tests
params: Type.Object({
etching: RuneSchema,
}),
Expand Down Expand Up @@ -193,7 +193,7 @@
operationId: 'getRuneHolderBalance',
summary: 'Rune holder balance',
description: 'Retrieves holder balance for a specific Rune',
tags: ['Runes'],
tags: ['Balances'],

Check warning on line 196 in api/src/api/routes/etchings.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/etchings.ts#L196

Added line #L196 was not covered by tests
params: Type.Object({
etching: RuneSchema,
address: AddressSchema,
Expand Down
4 changes: 2 additions & 2 deletions api/src/api/routes/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
{
schema: {
operationId: 'getTransactionActivity',
summary: 'Get transaction activity',
summary: 'Transaction activity',

Check warning on line 22 in api/src/api/routes/transactions.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/transactions.ts#L22

Added line #L22 was not covered by tests
description: 'Retrieves a paginated list of rune activity for a transaction',
tags: ['Runes'],
tags: ['Activities'],

Check warning on line 24 in api/src/api/routes/transactions.ts

View check run for this annotation

Codecov / codecov/patch

api/src/api/routes/transactions.ts#L24

Added line #L24 was not covered by tests
params: Type.Object({
tx_id: TransactionIdSchema,
}),
Expand Down
Loading
Loading