add statically cdn

This commit is contained in:
Priyatham Sai Chand 2021-01-11 23:35:11 +05:30
parent acf5663426
commit e2fa08b8a1
1 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,7 @@
const isProd = process.env.NODE_ENV === 'production'
module.exports = { module.exports = {
basePath: '/Portfolio', // Use the CDN in production and localhost for development.
assetPrefix: '/Portfolio/', assetPrefix: isProd ? 'https://cdn.statically.io/gh/Priyatham-sai-chand/Portfolio/gh-pages/' : '',
} }