Skip to content

Commit

Permalink
build: add assetPrefix to solve DPM images not being loaded properly
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoM committed Jul 26, 2023
1 parent cd03c92 commit 0ad02a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
const { i18n } = require("./next-i18next.config")

/** @type {import('next').NextConfig} */
const isProd = process.env.NODE_ENV === "production"

/** @type {import("next").NextConfig} */

module.exports = {
output: "standalone",
reactStrictMode: true,
// Use the CDN in production and localhost for development.
assetPrefix: isProd ? "https://desmos.network" : undefined,
experimental: {
// https://mmazzarolo.com/blog/2021-04-10-nextjs-scroll-restoration/
scrollRestoration: true,
Expand Down

0 comments on commit 0ad02a0

Please sign in to comment.