Git Product home page Git Product logo

Comments (3)

YouFoundAlpha avatar YouFoundAlpha commented on June 14, 2024

I asked ChatGPT (as I'm not familliar with the Ramda library) to write a function for the https://github.com/is-a-dev/register/blob/d5faa0a8200dc754ffe4a67fb393c174a4bde18f/utils/validations.js
to check if the domain is pointing at vercel or netlify and it came out with this (I don't know if this is going to work and I have not tested it yet)

const isDeployedOnHostingService = (domain) => {
  const hostingServices = ['vercel.app', 'netlify.app'];
  return hostingServices.some(service => domain.includes(service));
};

// Example usage:
const domain1 = 'example.vercel.app';
const domain2 = 'mywebsite.netlify.app';

console.log(isDeployedOnHostingService(domain1));  // true
console.log(isDeployedOnHostingService(domain2));  // true

from register.

wdhdev avatar wdhdev commented on June 14, 2024

We probably won't do this as we may support them at some point in the future.

from register.

YouFoundAlpha avatar YouFoundAlpha commented on June 14, 2024

y won't do this as we may sup

ok

from register.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.