mirror of
https://github.com/Priyatham-sai-chand/Portfolio.git
synced 2026-10-05 08:51:33 -07:00
add statically cdn
This commit is contained in:
parent
acf5663426
commit
e2fa08b8a1
1 changed files with 6 additions and 3 deletions
|
|
@ -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/' : '',
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue