Pārlūkot izejas kodu

chore: add cdn config

代强 2 gadi atpakaļ
vecāks
revīzija
76ded090f3
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      gatsby-config.js

+ 1 - 1
gatsby-config.js

@@ -1,7 +1,7 @@
 const path = require('path');
 module.exports = {
     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: {
         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',