Skip to content

Commit f12db72

Browse files
authored
Update agent.yml with relative imports and cors fix (#31)
* Update agent.yml with relative imports and cors fix * Refactor imports to build entry point
1 parent 4f10b15 commit f12db72

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

agent.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ server:
9292
$ref: /constants/port
9393
use:
9494
# CORS
95-
- - $require: 'cors'
95+
- - $require: 'cors?t=function#default'
9696

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

226226
# DID Manager
227227
didManager:
@@ -235,7 +235,7 @@ didManager:
235235
providers:
236236
# __TEMPLATE__: you can install your customized DID provider like so
237237
did:my:
238-
$require: ./build#MyIdentifierProvider
238+
$require: ./build/index.js#MyIdentifierProvider
239239
$args:
240240
- defaultKms: local
241241
did:ethr:
@@ -279,4 +279,4 @@ agent:
279279
$args:
280280
- $ref: /dbConnection
281281
# __TEMPLATE__: install your plugin on the `@veramo/cli` agent
282-
- $require: ./build#MyAgentPlugin
282+
- $require: ./build/index.js#MyAgentPlugin

0 commit comments

Comments
 (0)