ソースを参照

chore: add cdn config

代强 2 年 前
コミット
634e003644
1 ファイル変更1 行追加1 行削除
  1. 1 1
      gatsby-config.js

+ 1 - 1
gatsby-config.js

@@ -1,7 +1,7 @@
 const path = require('path');
 module.exports = {
     pathPrefix: '/',
-    assetPrefix: `/${process.env['CDN_OUTER_CN']}/semi_main`,
+    assetPrefix: `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',