Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
466 changes: 0 additions & 466 deletions DOCUSAURUS_ENHANCEMENT_OPPORTUNITIES.md

This file was deleted.

68 changes: 66 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,73 @@ const config = {
],
],

// Performance optimizations removed to fix deployment issues

// Bundle analyzer for optimization monitoring

plugins: [
// Custom webpack plugin for source maps and performance
function webpackOptimizationPlugin() {
return {
name: 'webpack-optimization-plugin',
configureWebpack(config, isServer) {
if (!isServer) {
return {
devtool: 'source-map',
optimization: {
splitChunks: {
chunks: 'all',
cacheGroups: {
vendor: {
test: /[\\/]node_modules[\\/]/,
name: 'vendors',
chunks: 'all',
priority: 10,
},
common: {
name: 'common',
minChunks: 2,
chunks: 'all',
priority: 5,
reuseExistingChunk: true,
},
},
},
},
};
}
},
};
},
// Performance optimization plugin
function performancePlugin() {
return {
name: 'performance-plugin',
injectHtmlTags() {
return {
headTags: [
{
tagName: 'script',
innerHTML: `
(function() {
var script = document.createElement('script');
script.async = true;
script.src = 'https://www.googletagmanager.com/gtag/js?id=UA-109059578-7';
script.onload = function() {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-109059578-7', {anonymize_ip: true});
};
setTimeout(function() {
document.head.appendChild(script);
}, 3000);
})();
`,
},
],
};
},
};
},
[
'@docusaurus/plugin-ideal-image',
{
Expand Down Expand Up @@ -243,6 +305,8 @@ const config = {
logo: {
alt: 'daily.dev Logo',
src: 'img/logo.png',
width: 32,
height: 32,
},
items: [
{
Expand Down
77 changes: 77 additions & 0 deletions playwright-report/index.html

Large diffs are not rendered by default.

Loading
Loading