I have an app that I need to move to an Azure subcription. the stack is NextJs, Prisma and Keystone.
It is doing some file uploading and Keystone have built in support for s3 storage.
Is there a way to use a Azure Storage account in place of an s3?
I tried using this https://www.npmjs.com/package/@k6-contrib/fields-azure but can't get it to work.
I got help from another source and managed to solve it.
I used the package (https://www.npmjs.com/package/@k6-contrib/fields-azure) but had to make some modifications.
In
keystone.tsAdd import
Then a config object needs to be created for the SA-connection.
Note that this differs somewhat from the instructions at npm and in the example. The url needed to be "host/container".
Then the fields connected to the storage needed to be set. In my case the "logo" field.
AZURE_STORAGE_CONTAINERAZURE_STORAGE_ACCOUNT_NAMEAZURE_STORAGE_ACCESS_KEYAZURE_STORAGE_ACCOUNT_HOSTHope this can help someone out there with a similar problem.