|
@@ -1,7 +1,16 @@
|
|
|
|
+const isProd = process.env.NODE_ENV === "production";
|
|
|
|
+const assetPrefix = isProd ? '/jsonvisio.com' : ''
|
|
|
|
+
|
|
/** @type {import('next').NextConfig} */
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
const nextConfig = {
|
|
|
|
+ basePath: '/jsonvisio.com',
|
|
|
|
+ exportPathMap: () => ({
|
|
|
|
+ '/': { page: '/' },
|
|
|
|
+ '/editor': { page: '/editor' },
|
|
|
|
+ }),
|
|
|
|
+ assetPrefix,
|
|
reactStrictMode: true,
|
|
reactStrictMode: true,
|
|
- trailingSlash: true
|
|
|
|
-}
|
|
|
|
|
|
+ trailingSlash: true,
|
|
|
|
+};
|
|
|
|
|
|
-module.exports = nextConfig
|
|
|
|
|
|
+module.exports = nextConfig;
|