-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from LedgerHQ/develop
Deploy upgraded app with ExchangeSDK to prod
- Loading branch information
Showing
33 changed files
with
4,416 additions
and
3,071 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,3 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"prettier", | ||
"import", | ||
"@typescript-eslint", | ||
"react-hooks", | ||
"react" | ||
], | ||
"extends": [ | ||
"airbnb-typescript/base", | ||
"plugin:prettier/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
"plugin:import/typescript", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended" | ||
], | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
}, | ||
"rules": { | ||
"no-console": "warn", | ||
"prettier/prettier": "error", | ||
"@typescript-eslint/ban-ts-comment": "warn", | ||
"@typescript-eslint/no-unsafe-assignment": "warn", | ||
"@typescript-eslint/no-unsafe-call": "warn", | ||
"@typescript-eslint/no-unsafe-argument": "warn", | ||
"@typescript-eslint/no-unsafe-member-access": "warn", | ||
"@typescript-eslint/no-empty-interface": "warn" | ||
} | ||
"extends": ["next/core-web-vitals", "prettier"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export async function register() { | ||
if (process.env.NEXT_RUNTIME === "nodejs") { | ||
await import("./sentry.server.config"); | ||
} | ||
|
||
if (process.env.NEXT_RUNTIME === "edge") { | ||
await import("./sentry.edge.config"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"id": "coinify", | ||
"name": "Coinify", | ||
"private": true, | ||
"url": "http://localhost:3000?env=sandbox", | ||
"homepageUrl": "https://www.coinify.com/", | ||
"icon": "https://cdn.live.ledger.com/icons/platform/coinify.png", | ||
"platforms": ["android", "desktop", "ios"], | ||
"apiVersion": "^2.0.0", | ||
"manifestVersion": "2", | ||
"branch": "stable", | ||
"categories": ["buy", "sell"], | ||
"currencies": "*", | ||
"content": { | ||
"shortDescription": { | ||
"ar": "طريقة سريعة وبسيطة وآمنة لشراء الأصول المشفرة.", | ||
"de": "Eine schnelle, einfache und sichere Möglichkeit, Kryptos zu kaufen.", | ||
"en": "A fast, simple, and secure way to buy crypto.", | ||
"es": "Una forma rápida, sencilla y segura de comprar cripto.", | ||
"fr": "Un moyen rapide, simple et sécurisé d’acheter des cryptos.", | ||
"ja": "暗号資産を迅速・簡単・安全に購入する方法。", | ||
"ko": "신속하고 간편하며 안전한 암호화폐 구매 방법", | ||
"pt": "Uma maneira rápida, simples e segura de comprar cripto.", | ||
"ru": "Быстрый, простой и безопасный способ покупки криптовалют.", | ||
"tr": "Kripto para satın almak için hızlı, basit ve güvenli bir yol.", | ||
"zh": "简单、快捷、安全的加密货币购买方式。" | ||
}, | ||
"description": { | ||
"ar": "Coinify هي منصة على الإنترنت آمنة تقدم طريقةً سهلةً لشراء وبيع العملات الافتراضية.", | ||
"de": "Coinify ist eine sichere Online-Plattform, die einen einfachen Weg zum Kauf und Verkauf von virtuellen Währungen bietet.", | ||
"en": "Coinify is a secure online platform that offers an easy way to buy and sell virtual currencies.", | ||
"es": "Coinify es una plataforma online segura que ofrece una manera fácil de comprar y vender divisas virtuales.", | ||
"fr": "Coinify est une plateforme en ligne sécurisée qui permet d’acheter et de vendre facilement des monnaies virtuelles.", | ||
"ja": "Coinifyは、暗号資産を安全かつ簡単に売買できるオンラインプラットフォームです。", | ||
"ko": "Coinify는 쉽고 간단한 가상화폐 매매 서비스를 제공하는 안전한 온라인 플랫폼입니다.", | ||
"pt": "A Coinify é uma plataforma online segura que oferece uma maneira fácil de comprar e vender moedas virtuais.", | ||
"ru": "Coinify — безопасная онлайн-платформа для лёгких покупок и продаж виртуальных валют.", | ||
"tr": "Coinify, sanal para alıp satmanın kolay bir yolunu sunan güvenli bir çevrim içi platformdur.", | ||
"zh": "Coinify 是一个安全的在线平台,可以轻松买卖虚拟货币。" | ||
} | ||
}, | ||
"permissions": [ | ||
"account.list", | ||
"account.receive", | ||
"account.request", | ||
"currency.list", | ||
"device.close", | ||
"device.exchange", | ||
"device.transport", | ||
"message.sign", | ||
"transaction.sign", | ||
"transaction.signAndBroadcast", | ||
"storage.set", | ||
"storage.get", | ||
"bitcoin.getXPub", | ||
"wallet.capabilities", | ||
"wallet.userId", | ||
"wallet.info", | ||
"exchange.start", | ||
"exchange.complete", | ||
"custom.exchange.start", | ||
"custom.exchange.complete", | ||
"custom.exchange.error" | ||
], | ||
"domains": ["http://", "https://"], | ||
"visibility": "complete" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"id": "coinify", | ||
"name": "Coinify", | ||
"private": true, | ||
"url": "https://platform-app-coinify-staging.vercel.app/?env=sandbox", | ||
"homepageUrl": "https://www.coinify.com/", | ||
"icon": "https://cdn.live.ledger.com/icons/platform/coinify.png", | ||
"platforms": ["android", "desktop", "ios"], | ||
"apiVersion": "^2.0.0", | ||
"manifestVersion": "2", | ||
"branch": "stable", | ||
"categories": ["buy", "sell"], | ||
"currencies": "*", | ||
"content": { | ||
"shortDescription": { | ||
"ar": "طريقة سريعة وبسيطة وآمنة لشراء الأصول المشفرة.", | ||
"de": "Eine schnelle, einfache und sichere Möglichkeit, Kryptos zu kaufen.", | ||
"en": "A fast, simple, and secure way to buy crypto.", | ||
"es": "Una forma rápida, sencilla y segura de comprar cripto.", | ||
"fr": "Un moyen rapide, simple et sécurisé d’acheter des cryptos.", | ||
"ja": "暗号資産を迅速・簡単・安全に購入する方法。", | ||
"ko": "신속하고 간편하며 안전한 암호화폐 구매 방법", | ||
"pt": "Uma maneira rápida, simples e segura de comprar cripto.", | ||
"ru": "Быстрый, простой и безопасный способ покупки криптовалют.", | ||
"tr": "Kripto para satın almak için hızlı, basit ve güvenli bir yol.", | ||
"zh": "简单、快捷、安全的加密货币购买方式。" | ||
}, | ||
"description": { | ||
"ar": "Coinify هي منصة على الإنترنت آمنة تقدم طريقةً سهلةً لشراء وبيع العملات الافتراضية.", | ||
"de": "Coinify ist eine sichere Online-Plattform, die einen einfachen Weg zum Kauf und Verkauf von virtuellen Währungen bietet.", | ||
"en": "Coinify is a secure online platform that offers an easy way to buy and sell virtual currencies.", | ||
"es": "Coinify es una plataforma online segura que ofrece una manera fácil de comprar y vender divisas virtuales.", | ||
"fr": "Coinify est une plateforme en ligne sécurisée qui permet d’acheter et de vendre facilement des monnaies virtuelles.", | ||
"ja": "Coinifyは、暗号資産を安全かつ簡単に売買できるオンラインプラットフォームです。", | ||
"ko": "Coinify는 쉽고 간단한 가상화폐 매매 서비스를 제공하는 안전한 온라인 플랫폼입니다.", | ||
"pt": "A Coinify é uma plataforma online segura que oferece uma maneira fácil de comprar e vender moedas virtuais.", | ||
"ru": "Coinify — безопасная онлайн-платформа для лёгких покупок и продаж виртуальных валют.", | ||
"tr": "Coinify, sanal para alıp satmanın kolay bir yolunu sunan güvenli bir çevrim içi platformdur.", | ||
"zh": "Coinify 是一个安全的在线平台,可以轻松买卖虚拟货币。" | ||
} | ||
}, | ||
"permissions": [ | ||
"account.list", | ||
"account.receive", | ||
"account.request", | ||
"currency.list", | ||
"device.close", | ||
"device.exchange", | ||
"device.transport", | ||
"message.sign", | ||
"transaction.sign", | ||
"transaction.signAndBroadcast", | ||
"storage.set", | ||
"storage.get", | ||
"bitcoin.getXPub", | ||
"wallet.capabilities", | ||
"wallet.userId", | ||
"wallet.info", | ||
"exchange.start", | ||
"exchange.complete", | ||
"custom.exchange.start", | ||
"custom.exchange.complete", | ||
"custom.exchange.error" | ||
], | ||
"domains": ["http://", "https://"], | ||
"visibility": "complete" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import { withSentryConfig } from "@sentry/nextjs"; | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
compiler: { | ||
styledComponents: true, | ||
}, | ||
async headers() { | ||
return [ | ||
{ | ||
// matching all API routes | ||
source: "/:path*", | ||
headers: [ | ||
{ key: "Access-Control-Allow-Credentials", value: "true" }, | ||
{ key: "Access-Control-Allow-Origin", value: "*" }, | ||
{ | ||
key: "Access-Control-Allow-Methods", | ||
value: "GET,OPTIONS,PATCH,DELETE,POST,PUT", | ||
}, | ||
{ | ||
key: "Access-Control-Allow-Headers", | ||
value: | ||
"X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version", | ||
}, | ||
], | ||
}, | ||
]; | ||
}, | ||
}; | ||
|
||
const mergedConfig = withSentryConfig( | ||
nextConfig, | ||
{ | ||
org: "ledger", | ||
project: "platform-app-coinify", | ||
authToken: process.env.SENTRY_AUTH_TOKEN, | ||
silent: false, | ||
}, | ||
{ | ||
// For all available options, see: | ||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/ | ||
|
||
// Upload a larger set of source maps for prettier stack traces (increases build time) | ||
widenClientFileUpload: true, | ||
|
||
// Transpiles SDK to be compatible with IE11 (increases bundle size) | ||
transpileClientSDK: true, | ||
|
||
// Uncomment to route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers. | ||
// This can increase your server load as well as your hosting bill. | ||
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client- | ||
// side errors will fail. | ||
// tunnelRoute: "/monitoring", | ||
|
||
// Hides source maps from generated client bundles | ||
hideSourceMaps: true, | ||
|
||
// Automatically tree-shake Sentry logger statements to reduce bundle size | ||
disableLogger: true, | ||
|
||
// Enables automatic instrumentation of Vercel Cron Monitors. | ||
// See the following for more information: | ||
// https://docs.sentry.io/product/crons/ | ||
// https://vercel.com/docs/cron-jobs | ||
// automaticVercelMonitors: true, | ||
} | ||
); | ||
|
||
export default mergedConfig; |
Oops, something went wrong.