Skip to content

Commit

Permalink
Update agent.yml with relative imports and cors fix (#31)
Browse files Browse the repository at this point in the history
* Update agent.yml with relative imports and cors fix

* Refactor imports to build entry point
  • Loading branch information
jaycoolslm authored Jun 12, 2024
1 parent 4f10b15 commit f12db72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ server:
$ref: /constants/port
use:
# CORS
- - $require: 'cors'
- - $require: 'cors?t=function#default'

# Add agent to the request object
- - $require: '@veramo/remote-server?t=function#RequestWithAgentRouter'
Expand Down Expand Up @@ -221,7 +221,7 @@ keyManager:
- $ref: /constants/secretKey
# __TEMPLATE__: you can install your own Key Management System implementation too
my:
$require: ./build#MyKeyManagementSystem
$require: ./build/index.js#MyKeyManagementSystem

# DID Manager
didManager:
Expand All @@ -235,7 +235,7 @@ didManager:
providers:
# __TEMPLATE__: you can install your customized DID provider like so
did:my:
$require: ./build#MyIdentifierProvider
$require: ./build/index.js#MyIdentifierProvider
$args:
- defaultKms: local
did:ethr:
Expand Down Expand Up @@ -279,4 +279,4 @@ agent:
$args:
- $ref: /dbConnection
# __TEMPLATE__: install your plugin on the `@veramo/cli` agent
- $require: ./build#MyAgentPlugin
- $require: ./build/index.js#MyAgentPlugin

0 comments on commit f12db72

Please sign in to comment.