Error Edge Functoins
I get the following error: Entrypoint path does not exist - /tmp/user_fn_ofmmnwuobekwneblkcdv_76afd757-9a1a-4964-a0cc-f5163c726acc_1/source/index.ts
It happens when I try to deploy my edge function, do you know what the reason would be?
code:
5 Replies
@Juan it seems the ZIP doesn’t include source/index.ts, which is required as the entrypoint. Please make sure your ZIP has a source folder containing index.ts exactly at that path. You can confirm using zipCheck.getEntries() output.
This is the structure of the zip that is created, the index.ts is already inside the source.
from function is the unzipped zip

@Juan it looks like index.ts is inside the source folder, so you should update entrypoint path to 'source/index.ts' in the metadata. That should resolve the deployment error.
@OakRatos new Metadata with "source/index.ts"
the same error but source is duplicate: message: 'Entrypoint path does not exist - /tmp/user_fn_ofmmnwuobekwneblkcdv_615d1233-b638-40cf-803a-393f4c6b693a_1/source/source/index.ts'
Do I need to do any extra configuration manually on the dashboard?
@Juan set entrypoint_path to 'index.ts' , ZIP already includes the source folder.