#localstorage

10 messages · Page 1 of 1 (latest)

main leaf
#

so I have some data in localstorage and I want to get it on the server. what's the best way to do this?

stone nacelleBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

      🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in <id:customize>

      ✅ You can mark a message as the answer for your post with `Right click -> Apps -> Mark Solution`
      (if you don't see the option, try refreshing Discord with Ctrl + R)
main leaf
#

yeah, ik that localstorage is client-side

#

but I really need this data to get to the server

onyx pumice
#

Do a post request to server?

main leaf
#

from where

onyx pumice
#

Get in client then do a post req

main leaf
#

I have a page.tsx and I want to see what's in a localstorage key and either save it somewhere or redirect

#

this is on the first request

main leaf
#

bumping