Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
9
Comments
1

otr-web-study

@otr-web-study300 points

I’m a mysterious individual who has yet to fill out my bio. One thing’s for certain: I love writing front-end code!

Latest solutions

  • IP Address Tracker

    #next#tailwind-css#typescript

    otr-web-study•300
    Submitted over 1 year ago

    0 comments
  • Multistep form

    #preact#redux-toolkit#typescript#framer-motion

    otr-web-study•300
    Submitted over 1 year ago

    0 comments
  • Ecommerce Product Page

    #next#tailwind-css#typescript#framer-motion

    otr-web-study•300
    Submitted over 1 year ago

    0 comments
  • Rock, Paper, Scissors game

    #framer-motion#redux-toolkit#tailwind-css#react

    otr-web-study•300
    Submitted almost 2 years ago

    0 comments
  • Countries API with color theme switcher

    #pinia#typescript#vue#tailwind-css

    otr-web-study•300
    Submitted almost 2 years ago

    0 comments
  • Job listings with filtering solution

    #pinia#typescript#vue#tailwind-css

    otr-web-study•300
    Submitted almost 2 years ago

    0 comments
View more solutions

Latest comments

  • Muhamad Rizki Ismail•180
    @rizkiismail9a
    Submitted over 1 year ago

    Responsive IP Address Tracker with Nuxt 3, Geoipify, and Nuxt3-Leaflet

    #nuxt#pinia#vue#tailwind-css
    1
    otr-web-study•300
    @otr-web-study
    Posted over 1 year ago

    Hi, Muhamad Rizki Ismail. Try to put data in the store using the useFetch's interceptor onResponse. Something like this:

    await useFetch(API_URL, {
      onResponse({ response }) {
        const data = response._data;
        // put your data in the store here
      },
    });
    

    As for getting the client's IP address, then you need to take into account the fact that the code from the server folder is always executed in the context of the server, i.e. in your case, this code is executed on the netlify.app server. To get the client's address, you can use the HTTP header - x-forwarded-for. For example, like this:

    export default defineEventHandler((event) => {
      const clientIP = event.node.req.headers['x-forwarded-for'];
      // fetch clientIP's information here
    });
    
    Marked as helpful
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub