Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"id": "site-editor-v2",
"init": [
"@wordpress/edit-site-init"
]
],
"experimental": true
},
"font-library",
"connectors"
Expand Down
20 changes: 16 additions & 4 deletions packages/wp-build/lib/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1769,11 +1769,23 @@ async function buildAll( baseUrlExpression ) {
id: page.id,
init: page.init || [],
title: page.title || undefined,
experimental: page.experimental || false,
};
} );

const pageData = normalizedPages.map( ( page ) => {
const pageRoutes = routes.filter( ( r ) => r.page === page.id );
// When building for WordPress Core, exclude experimental pages.
const isCoreBuild = Boolean(
process.env.npm_package_config_IS_WORDPRESS_CORE
);
const activePages = isCoreBuild
? normalizedPages.filter( ( page ) => ! page.experimental )
: normalizedPages;

const activePageIds = new Set( activePages.map( ( p ) => p.id ) );
const activeRoutes = routes.filter( ( r ) => activePageIds.has( r.page ) );

const pageData = activePages.map( ( page ) => {
const pageRoutes = activeRoutes.filter( ( r ) => r.page === page.id );
return {
slug: page.id,
routes: pageRoutes,
Expand Down Expand Up @@ -1838,8 +1850,8 @@ async function buildAll( baseUrlExpression ) {
generateScriptRegistrationPhp( scripts, phpReplacements ),
generateStyleRegistrationPhp( styles, phpReplacements ),
generateConstantsPhp( phpReplacements ),
generateRoutesRegistry( routes, phpReplacements ),
generateRoutesPhp( routes, phpReplacements ),
generateRoutesRegistry( activeRoutes, phpReplacements ),
generateRoutesPhp( activeRoutes, phpReplacements ),
generatePagesPhp( pageData, phpReplacements ),
] );
console.log( ' ✔ Generated build/build.php' );
Expand Down
Loading