-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PROTO-1789] Fix up minor entrypoint issues and deploy (#8252)
- Loading branch information
1 parent
7e4ec20
commit ca8133d
Showing
13 changed files
with
4,145 additions
and
267 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
# DDEX entrypoint | ||
|
||
Found at distro.audius.co. | ||
|
||
Simple redirects to relevant DDEX apps. | ||
Artist-facing entrypoint to distributor apps. | ||
|
||
## Development | ||
``` | ||
npm run dev | ||
npm run start:<dev|stage|prod> | ||
``` | ||
|
||
## Build | ||
``` | ||
npm run build:<dev|stage|prod> | ||
``` | ||
|
||
## Deployment | ||
## Deploy | ||
``` | ||
npm run deploy | ||
npm run deploy:<dev|stage|prod> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 0 additions & 45 deletions
45
packages/ddex/entrypoint/src/contexts/AudiusSdkProvider.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{ | ||
"distributors": [] | ||
"distributors": [ | ||
{ | ||
"appKey": "0x49d5e13d355709b615b7cce7369174fb240b6b39", | ||
"url": "https://audius-ddex.staging.audius.co" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { DiscoveryNodeSelector, productionConfig, sdk, stagingConfig } from '@audius/sdk' | ||
|
||
const env = import.meta.env.VITE_ENVIRONMENT as 'dev' | 'stage' | 'prod' | ||
|
||
const config = env === 'prod' ? productionConfig : stagingConfig | ||
const discoveryNodeSelector = new DiscoveryNodeSelector({ | ||
bootstrapServices: config.discoveryNodes, | ||
}) | ||
|
||
const instance = sdk({ | ||
appName: 'ddex', | ||
services: { | ||
discoveryNodeSelector | ||
} | ||
}) | ||
|
||
export const useSdk = () => ({ sdk: instance }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters