feat(queue): add typed application queue lifecycle
This commit is contained in:
@@ -763,6 +763,15 @@ applyAuthzManifestEarly([${authzSetupEntries}]);
|
||||
.join(", ");
|
||||
if (router.services.length) console.log(`✓ RPC services: ${router.services.length}`);
|
||||
|
||||
const queuesLit = (router.queues ?? [])
|
||||
.map((queue) => {
|
||||
const v = `q${counter++}`;
|
||||
imports.push(`import * as ${v} from ${JSON.stringify(fwd(queue.file))};`);
|
||||
return `{ name: ${JSON.stringify(queue.name)}, mod: ${v} }`;
|
||||
})
|
||||
.join(", ");
|
||||
if (router.queues?.length) console.log(`✓ Queues: ${router.queues.length}`);
|
||||
|
||||
// Authorization declarations again, this time for ProdOptions.authz — a
|
||||
// SEPARATE set of static imports of the exact same files (harmless; ES
|
||||
// modules are evaluated once and shared across every importer), statically
|
||||
@@ -798,6 +807,7 @@ await createProductionServer(
|
||||
components: [${componentsLit}],
|
||||
layouts: [${layoutsLit}],
|
||||
services: [${servicesLit}],
|
||||
queues: [${queuesLit}],
|
||||
},
|
||||
{
|
||||
reactivePath: join(import.meta.dir, "reactive.js"),
|
||||
|
||||
Reference in New Issue
Block a user