Skip to content

Commit

Permalink
chore: add cdn config
Browse files Browse the repository at this point in the history
  • Loading branch information
DaiQiangReal committed Nov 11, 2022
1 parent 488bc41 commit 66559b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path');
module.exports = {
pathPrefix: '/',
assetPrefix: (process.env['CDN_OUTER_CN'] || process.env['CDN_INNER_CN']) ? `https://${(process.env['CDN_OUTER_CN'] || process.env['CDN_INNER_CN'])}/${process.env['CDN_PATH_PREFIX']}/${process.env['BUILD_VERSION']}`: "",
assetPrefix: (process.env['CDN_OUTER_CN'] || process.env['CDN_INNER_CN']) ? `https://${(process.env['CDN_OUTER_CN'] || process.env['CDN_INNER_CN'])}/${process.env['CDN_PATH_PREFIX']}`: "",
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',
Expand Down

0 comments on commit 66559b4

Please sign in to comment.