Skip to content

Commit

Permalink
fix(fixing configs): fixing the config files
Browse files Browse the repository at this point in the history
  • Loading branch information
Torof committed Oct 21, 2024
1 parent f692d9b commit 64e3e5d
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions frontend/next.config copy.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import "../env.mjs";
import { env } from "../env.mjs";
import path from 'path';
import { fileURLToPath } from 'url';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

/** @type {import("next").NextConfig} */
const nextConfig = {
reactStrictMode: true,
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
net: false,
tls: false,
};
}

config.resolve.alias['@'] = path.join(__dirname, 'src');
config.resolve.alias['~'] = path.join(__dirname, 'public');
config.resolve.alias['@root'] = path.join(__dirname, '..');

return config;
},
transpilePackages: ['@graphql-mesh/http', '@graphql-mesh/merger-stitching', 'graphql-yoga'],
images: {
remotePatterns: [
{
protocol: "https",
hostname: "euc.li",
},
{
protocol: "https",
hostname: "pbs.twimg.com",
},
{
protocol: "https",
hostname: "chain.link",
},
],
},
async redirects() {
return [
{
source: "/app",
destination: "/app/invest",
permanent: true,
},
];
},
env: {
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID: env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID,
NEXT_PUBLIC_INTEGRATOR_ID: env.NEXT_PUBLIC_INTEGRATOR_ID,
NEXT_PUBLIC_FRONTEND_URL: env.NEXT_PUBLIC_FRONTEND_URL,
NEXT_PUBLIC_AFFILIATE_API_URL: env.NEXT_PUBLIC_AFFILIATE_API_URL,
},
};

export default nextConfig;

0 comments on commit 64e3e5d

Please # to comment.