I recently discovered that you can make `POST` req...
# share-your-work
i
I recently discovered that you can make
POST
request to Next.js
pages
routes that use
getServerSideProps
. It also looks like they're aware of some of the limitations that one can run into when solely relying on the edge. (https://x.com/leeerob/status/1780705942734331983?lang=en) And it looks like
middleware
in Node.js environments will be appearing at some point? (https://github.com/vercel/next.js/discussions/46722#discussioncomment-9152016) So when they finally support
middleare
in Node.js environments, I will again torture challenge myself by trying to get SuperTokens running without JS in the browser. It might be doable with both the
pages
directory and the
app
directory. I think middleware is the only thing missing. Global setup seems to be [experimentally] doable with
instrumentation
. (https://nextjs.org/docs/app/building-your-application/optimizing/instrumentation) Those potential Next.js updates are probably things worth keeping eyes on. (Don't subscribe to the GitHub discussion though. People are mainly complaining there at this point.)
2 Views