Skip to content

Commit

Permalink
chore: netlify (#89)
Browse files Browse the repository at this point in the history
* chore: add styled-jsx as dependency

* chore: add netlify/plugin-nextjs

* chore: pnpm support

* chore: view envs

* chore: view envs

* chore: pass on envs

* chore: try removing new dependencies, maybe hoisting was the issue

* chore: add back netlify/plugin-nextjs

* chore: add back styled-jsx

* chore: next config was failing

* chore: set baseUrl

* chore: change clientId

* chore: cleanup

* chore: cleanup envs
  • Loading branch information
einaralex authored Jul 30, 2024
1 parent 1f8f9f1 commit 4f2ccbb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
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 Down Expand Up @@ -223,7 +223,6 @@ process.env.CI !== 'true' &&

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

});

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

0 comments on commit 4f2ccbb

Please sign in to comment.