Skip to content

Instantly share code, notes, and snippets.

View Ryuka25's full-sized avatar
๐ŸŒŸ

Lovanirina Ryuka25

๐ŸŒŸ
View GitHub Profile

Headless CMS

Selfhost

  • PayloadCMS
  • Strapi
  • Directus
  • Sanity

Not selfhost

// server\api\ip.ts
// Get the ip of the client on Nuxt Server
export default defineEventHandler(async (event) => {
const ip = getRequestIP(event, { xForwardedFor: true });
console.log(ip);
return { ip: ip };
});