Skip to content

Commit

Permalink
attempt to fix routing (#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
scandycuz authored May 23, 2024
1 parent 8fa7f9c commit 3ade34f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,4 @@ jobs:
- name: Deploy to Lambda Function
run: |
npm install --prefix .github/workflows/cdk
sed -i 's|const nextConfig = .*|const nextConfig = { basePath: "/wallet-connect", |' apps/mobile-wallet-connector/next.config.js
APPNAME=mobile-wallet-connector APPID=MobileWalletConnector QUALIFIER=Garage NEXT_PUBLIC_RECAPTCHA_SITE_KEY_STAGING=${{ secrets.RECAPTCHA_SITE_KEY_STAGING }} npm run --prefix .github/workflows/cdk cdk:deploy deploy -- --require-approval never
17 changes: 13 additions & 4 deletions apps/mobile-wallet-connector/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,30 @@ const { composePlugins, withNx } = require("@nx/next");
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
**/
const nextConfig = {
async rewrites() {
return [
{
source: "/wallet-connect/:path*",
destination: "/:path*"
}
];
},

nx: {
// Set this to true if you would like to to use SVGR
// See: https://github.com/gregberge/svgr
svgr: false,
svgr: false
},

compiler: {
// For other options, see https://styled-components.com/docs/tooling#babel-plugin
styledComponents: true,
},
styledComponents: true
}
};

const plugins = [
// Add more Next.js plugins to this list if needed.
withNx,
withNx
];

module.exports = composePlugins(...plugins)(nextConfig);

0 comments on commit 3ade34f

Please sign in to comment.