Skip to content

Commit

Permalink
dassa
Browse files Browse the repository at this point in the history
  • Loading branch information
vladanpaunovic committed Sep 3, 2024
1 parent ec3f1e3 commit 0729010
Showing 1 changed file with 55 additions and 54 deletions.
109 changes: 55 additions & 54 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,64 +5,65 @@ const { withSentryConfig } = require("@sentry/nextjs");
const { withPlausibleProxy } = require("next-plausible");

/** @type {import('next').NextConfig} */
const moduleExports = (phase) => ({
webpack: (cfg) => {
cfg.module.rules.push({
test: /\.md$/,
loader: "frontmatter-markdown-loader",
options: {
mode: [Mode.BODY],
},
});
return cfg;
},
images: {
domains: [
"img.clankapp.com",
"assets.coingecko.com",
"assets.coincap.io",
const moduleExports = (phase) =>
withPlausibleProxy()({
webpack: (cfg) => {
cfg.module.rules.push({
test: /\.md$/,
loader: "frontmatter-markdown-loader",
options: {
mode: [Mode.BODY],
},
});
return cfg;
},
images: {
domains: [
"img.clankapp.com",
"assets.coingecko.com",
"assets.coincap.io",

// Google storage
"storage.googleapis.com",
"lh1.googleusercontent.com",
"lh2.googleusercontent.com",
"lh3.googleusercontent.com",
"lh4.googleusercontent.com",
"lh5.googleusercontent.com",
"lh6.googleusercontent.com",
],
},
env: {
IS_PROD: phase === PHASE_PRODUCTION_BUILD,
},
async redirects() {
return [
{
source: "/",
destination: `/dca/bitcoin`,
permanent: true,
},
{
source: "/lump-sum/:path*",
destination: "/dca/:path*",
permanent: true,
},
];
},
async rewrites() {
return [
{
source: "/sentry-tunnel",
destination: "https://o574491.ingest.sentry.io/api/5821539/envelope/",
},
];
},
});
// Google storage
"storage.googleapis.com",
"lh1.googleusercontent.com",
"lh2.googleusercontent.com",
"lh3.googleusercontent.com",
"lh4.googleusercontent.com",
"lh5.googleusercontent.com",
"lh6.googleusercontent.com",
],
},
env: {
IS_PROD: phase === PHASE_PRODUCTION_BUILD,
},
async redirects() {
return [
{
source: "/",
destination: `/dca/bitcoin`,
permanent: true,
},
{
source: "/lump-sum/:path*",
destination: "/dca/:path*",
permanent: true,
},
];
},
async rewrites() {
return [
{
source: "/sentry-tunnel",
destination: "https://o574491.ingest.sentry.io/api/5821539/envelope/",
},
];
},
});

const config = withPlausibleProxy()(moduleExports);
// const config = withPlausibleProxy()(moduleExports);
// Make sure adding Sentry options is the last code to run before exporting, to
// ensure that your source maps include changes from all other Webpack plugins
module.exports = withSentryConfig(config, {
module.exports = withSentryConfig(moduleExports, {
hideSourceMaps: false,
autoInstrumentServerFunctions: true,
});

0 comments on commit 0729010

Please sign in to comment.