ITEnthusiasm
06/22/2023, 12:36 PMts
SuperTokens.init({
supertokens: {
connectionURI: "http://127.0.0.1:3567",
},
appInfo: {
appName: "SuperTokens Testing",
websiteDomain: "http://localhost:3000",
apiDomain: "http://localhost:3000",
apiBasePath: "/auth",
},
recipeList: [
EmailPassword.init(),
Session.init(),
],
});
Any idea why I'd be getting this error? Seems like the URLs I have are valid.rp_st
06/22/2023, 12:40 PMITEnthusiasm
06/22/2023, 12:44 PMapiDomain
, then I was asked to provide websiteDomain
, then I got this error.rp_st
06/22/2023, 12:49 PMrp_st
06/22/2023, 12:49 PMITEnthusiasm
06/22/2023, 12:52 PMts
appInfo: {
appName: "Testing Next.js with Custom Backend",
websiteDomain: "http://localhost:3000",
websiteBasePath: "/auth",
apiDomain: "http://localhost:3000",
apiBasePath: "/api/auth",
}
Still same error, sadly.rp_st
06/22/2023, 12:52 PMITEnthusiasm
06/22/2023, 12:53 PMmiddleware.ts
file.rp_st
06/22/2023, 12:53 PMITEnthusiasm
06/22/2023, 12:53 PMrp_st
06/22/2023, 12:53 PMITEnthusiasm
06/22/2023, 12:54 PMrp_st
06/22/2023, 12:54 PMrp_st
06/22/2023, 12:54 PMITEnthusiasm
06/22/2023, 12:55 PMITEnthusiasm
06/22/2023, 1:20 PMnext@13
can't handle supertokens-node@14
. It specifically has to be supertokens-node@https://github.com/supertokens/supertokens-node#edge_func_compatibility
, like it is in your demo.
Is this a new version of supertokens-node
that will be coming out later? What's this version doing that's different? And why are Svelte Kit + Remix + Solid able to handle supertokens-node@14
but not Next.js?rp_st
06/22/2023, 1:24 PMrp_st
06/22/2023, 1:27 PMITEnthusiasm
06/22/2023, 1:40 PMsupertokens-node
so I can work with what Next.js is doing in the app dir. Odd to run into that issue though. I still like Remix more than Next π