Skip to content
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

chore: netlify #89

Merged
merged 14 commits into from
Jul 30, 2024
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@monerium:registry=https://registry.npmjs.org/
//registry.npmjs.org/:_auth=${NODE_AUTH_TOKEN:-undefined}
always-auth=true

public-hoist-pattern[]=*
6 changes: 4 additions & 2 deletions apps/customer/components/App/Providers/Providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ import StyleProviders from './Style/StyleProviders';

const queryClient = new QueryClient();

const baseUrl = typeof window !== 'undefined' ? window.location.origin : '';

function Providers({ children }: { children: React.ReactNode }) {
return (
<WagmiProvider config={config}>
<QueryClientProvider client={queryClient}>
<RainbowKitProvider>
<MoneriumProvider
clientId="f2cd22fa-2406-11ef-8cfc-fe34ee86fd51"
redirectUrl="http://localhost:3000/dashboard"
clientId="f99e629b-6dca-11ee-8aa6-5273f65ed05b"
redirectUrl={`${baseUrl}/dashboard`}
environment="sandbox"
>
<StyleProviders>{children}</StyleProviders>
Expand Down
5 changes: 2 additions & 3 deletions packages/sdk/test/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* @jest-environment jsdom
*/

// Login: [email protected]
// Password: Passw0rd!
// For credentials used here,
// see 'Monerium SDK Test user' in 1Password

// punkWallet: https://punkwallet.io/pk#0x30fa9f64fb85dab6b4bf045443e08315d6570d4eabce7c1363acda96042a6e1a

Expand All @@ -23,7 +23,7 @@
const assignMock = jest.fn();

// Can't run in CI because of Cloudflare
process.env.CI !== 'true' &&

Check warning on line 26 in packages/sdk/test/client.test.ts

View workflow job for this annotation

GitHub Actions / Build, Test, Lint and Publish

CI is not listed as a dependency in turbo.json
describe('MoneriumClient', () => {
beforeAll(() => {
Object.defineProperty(window, 'location', {
Expand Down Expand Up @@ -223,7 +223,6 @@

expect(client.bearerProfile).toBeUndefined();
});

});

process.env.CI === 'true' &&
Expand Down
Loading