edgestorejs / edgestore

https://edgestore.dev
397 stars 25 forks source link

Issue when nextjs trailingSlash = true #35

Closed dylee-sparta closed 2 months ago

dylee-sparta commented 9 months ago

Background:

Error Message: I encountered an error while trying to integrate Edgestore into my project. The error message is as follows:

EdgeStoreError: Failed to parse response. Make sure the API is correctly configured at http://localhost:3000/api/edgestore/init/

Suspected Causes:

perfectbase commented 9 months ago

Hi @dylee-sparta! There should be no compatibility issue with next 14. Can you take a look at the troubleshooting docs? It should help you fix your problem. If you still have problems after it, feel free to reach out!

dylee-sparta commented 9 months ago

Oh! sorry. This is completely my falut. The reason of a problem is trailingSlash(=true) option of my Next project. So, the problem and work well api path like below

 http://localhost:3000/api/edgestore/init/    // not work

 http://localhost:3000/api/edgestore/init     // work

So, when i turn off trailingSlash option of Next, edgestore is work well. Thanks to reply.

And, i hope edgestore team can also consider trailing slash. Thanks to read my question written by beginner of english.

perfectbase commented 9 months ago

Oh! I wasn't aware of this problem. Thank you for reporting it. Let's leave the issue open for now until we handle that.

perfectbase commented 2 months ago

This should be fixed in version 0.2.1.