Skip to content

Commit 7b2c75b

Browse files
committed
Disable WordPress bootstrap side effects
1 parent 4c7bd06 commit 7b2c75b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/runtime-cloudflare/src/worker.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ async function bootWordPressRuntime(
128128
): Promise<{ php: PHP; wordpressVersion: string }> {
129129
const requestHandler = await bootWordPressAndRequestHandler({
130130
createPhpRuntime,
131+
constants: {
132+
AUTOMATIC_UPDATER_DISABLED: true,
133+
DISABLE_WP_CRON: true,
134+
WP_HTTP_BLOCK_EXTERNAL: true,
135+
},
131136
dataSqlPath: DATABASE_PATH,
132137
hooks: streamWordPressFiles || databaseSeed ? {
133138
beforeWordPressFiles: streamWordPressFiles ? materializeWordPressServerFiles : undefined,

0 commit comments

Comments
 (0)