diff --git a/next.config.js b/next.config.js index 464844a..2eb211a 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,7 @@ + +const isProd = process.env.NODE_ENV === 'production' + module.exports = { - basePath: '/Portfolio', - assetPrefix: '/Portfolio/', -} + // Use the CDN in production and localhost for development. + assetPrefix: isProd ? 'https://cdn.statically.io/gh/Priyatham-sai-chand/Portfolio/gh-pages/' : '', +} \ No newline at end of file