Pages -> Worker Migration

{
"$schema": "./node_modules/wrangler/config-schema.json",
"compatibility_date": "2025-11-11",
"assets": {
"not_found_handling": "404-page"
}
}
{
"$schema": "./node_modules/wrangler/config-schema.json",
"compatibility_date": "2025-11-11",
"assets": {
"not_found_handling": "404-page"
}
}
1 Reply
stavros-k
stavros-kOP2w ago
@Will Taylor | Workers Hey, so this is what I'm using as config. Then I have a matrix of CI runs for each of my projects, Where each job runs:
npm install
npm run configure $project-name (this copies the configs/translations in the correct directory)
npm run build
npm install
npm run configure $project-name (this copies the configs/translations in the correct directory)
npm run build
For previews:
wrangler versions upload --name $project-name --assets $buildDir
wrangler versions upload --name $project-name --assets $buildDir
For deploy
wrangler deploy --name $project-name --assets $buildDir
wrangler deploy --name $project-name --assets $buildDir
html_handling is set by default to auto trailing slash which is fine I think, at least my testing looks everything works I have no worker main script file at all, I dont think I need to configure anything else?

Did you find this page helpful?