代强 пре 2 година
родитељ
комит
76ded090f3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      gatsby-config.js

+ 1 - 1
gatsby-config.js

@@ -1,7 +1,7 @@
 const path = require('path');
 const path = require('path');
 module.exports = {
 module.exports = {
     pathPrefix: '/',
     pathPrefix: '/',
-    assetPrefix: `https://${process.env['CDN_OUTER_CN']}/semi_main`,
+    assetPrefix: process.env['CDN_OUTER_CN'] ? `https://${process.env['CDN_OUTER_CN']}/semi_main`: "",
     siteMetadata: {
     siteMetadata: {
         title: 'Gatsby Default Starter',
         title: 'Gatsby Default Starter',
         description: 'Create a consistent, good-looking, easy-to-use, and efficient user experience with a user-centric, content-first, and human-friendly design system',
         description: 'Create a consistent, good-looking, easy-to-use, and efficient user experience with a user-centric, content-first, and human-friendly design system',