diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index b66e76c7..1e71c49b 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -64,10 +64,13 @@ jobs: config = yaml.safe_load(file) logging.info('YAML file loaded successfully.') - # Modify the developer mode setting + # Modify the developer mode and CDN settings config['developer']['enable'] = True logging.info('Developer mode set to True.') + config['cdn']['enable'] = False + logging.info('CDN set to False.') + # Save the modified YAML file with open('hexo-site/_config.redefine.yml', 'w') as file: yaml.safe_dump(config, file, default_flow_style=False, sort_keys=False)