apollo-server-integrations / apollo-server-integration-azure-functions

MIT License
31 stars 13 forks source link

The function does not appear on Azure with Pothos #75

Open keita-makino opened 4 months ago

keita-makino commented 4 months ago

When I use the example described in the readme the function is deployed to Azure, but the code with a schema that is generated through Pothos failed to be successfully deployed on Azure as the image below shows.

image

It works if you delete src/functions/database.ts in the code repository of mine (https://github.com/3rfm-its-davis/odometer-reading) or change its contents to what listed in the readme. It also works in the local environment.

I think it's something because of this package but did you have some suggestions for this situation?

Edit: I mistakenly exposed the subscription ID :/ so moved the resources to a new one and deleted the one shown above.

charlesgardyn commented 1 week ago

did you configure main in package.json? You need to point to the correct folder like this: "main": "dist/src/functions/*.js"