-
Notifications
You must be signed in to change notification settings - Fork 3
Import from Linktree #166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import from Linktree #166
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
if (!process.env.REACT_APP_NIMI_API_BASE_URL) { | ||
throw new Error('REACT_APP_NIMI_API_BASE_URL is not set.'); | ||
} else if (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') { | ||
return process.env.REACT_APP_NIMI_API_DEV_BASE_URL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's good to require the presence of EITHER development or production.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean by this its? Thats what it should do it just a check when to use development vs production url...
Someone is attempting to deploy this commit to the nimi-app Team on Vercel. To accomplish this, the commit author's email address needs to be associated with a GitHub account. Learn more about how to change the commit author information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! let's merge this
}) | ||
.then(({ data }) => { | ||
const mappedLinks = data.data.map(({ content, title }) => { | ||
const guessLinkType = guessLinkTypeBasedOnUrl(content); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Smart!
Import from Linkree feature:

To test go to createPage and click on linktree icon then paste your linkree url